T
Timothy Golden
I have discovered a memory leak when vba accesses field codes.
The test is simple. Simply add an author code and an autonumber code
to a blank document. Write a macro that reads their
values(fields(i).code.text) about ten thousand times. Look at the
increase in memory consumption. The memory consumption goes up
proportionally with the number of accesses to members of the fields
array. This number was increasing by 10 MB per run on my test using
Office 2002 on Windows XP. When you try to close the document it will
take forever because of the memory leak. I'm not finding this bug
anywhere on the web.
The test is simple. Simply add an author code and an autonumber code
to a blank document. Write a macro that reads their
values(fields(i).code.text) about ten thousand times. Look at the
increase in memory consumption. The memory consumption goes up
proportionally with the number of accesses to members of the fields
array. This number was increasing by 10 MB per run on my test using
Office 2002 on Windows XP. When you try to close the document it will
take forever because of the memory leak. I'm not finding this bug
anywhere on the web.