June 30th, 2003, 11:56 AM
VB6 startup memory bloat
I have a VB6 app that when it runs, it takes up 13MB of memory. However if I just minimize then restore the screen the memory usage goes down to a reasonable 3MB, and stays near that level as the application is used.
There is no Form_activate code that affects this.
I tried a new project with just a blank form, it takes 2.1 MB, however if I do the min/restore the memory usage goees down to 600KB.
Is there some way to clear this memory, or not have it allocated at all on startup? When there are several exes in memory some machines run out of memory.
June 30th, 2003, 01:58 PM
The Enterprise Version of Visual Basic comes with the Application Performance Manager. Have you tried stepping through the application to see what action peaks the processor?