field codes memory leak

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top