We have an MDI application with 30 child forms. 'Orders' form is loaded from menu using this command - frmOrders.show. When user presses a 'Close' button in the form, the form closes by calling Unload Me. Keeping the Win2K Task Manager open, I watched that before the form is shown the program was using 6M of memory. After the form
is shown the used memory becomes 7.8 MB. Now when the form is unloaded, it still is showing the same memory use! But subsequent call to the same form does not use any extra memory.
I searched through the newsgroup and saw a solution which says - 'set frmOrders = Nothing' statement will release the memory back to windows. But IT IS NOT TRUE. I tried with a small program with two forms but found no truth in it.
After each form is shown, the memory use increases and the program starts slowing down. Any solutions?
I am using:
Windows 2000 Professional
Visual Basic 6 (+SP5)
is shown the used memory becomes 7.8 MB. Now when the form is unloaded, it still is showing the same memory use! But subsequent call to the same form does not use any extra memory.
I searched through the newsgroup and saw a solution which says - 'set frmOrders = Nothing' statement will release the memory back to windows. But IT IS NOT TRUE. I tried with a small program with two forms but found no truth in it.
After each form is shown, the memory use increases and the program starts slowing down. Any solutions?
I am using:
Windows 2000 Professional
Visual Basic 6 (+SP5)