I have a VB6 application that loads in a file and has to create about 125,000 objects from this text file. This loading takes about 10 seconds. When I close the application, it takes about 20 seconds to shutdown and you can see in the Task Manager that the memory allocation for the process slowly shrinks. For some reason VB6 will not let go of these objects. I have this library written in .NET as well and it releases the memory immediately when I exit. How can I force VB to release the memory and shutdown?
Start Free Trial