-
Every time a form is unloaded it doesn't release all
the memory it once used.
Repeatedly loading and unloading forms seems to
hog memory, eventually slowing my application down (till
RTE 7 'Out of Memory').
Is there a way of unloading a form whilst retrieving
all the RAM memory it took (set frm = nothing has no effect and hide/unhide is not viable). Alternatively, if an appliaction is running for a long time, is it possible to
somehow clear the memory of garbage (without rebooting).
-
Unload MyForm
'Unloads a form or control from memory.
When a form is unloaded, only the displayed component is unloaded. The code associated with the form module remains in memory
-
Set Form1 = Nothing 'removes all that are using memory
Unload Form1 'Unload form from menu
Use both.
-
Don't forget to release any objects you have instantiated in the form, cos they will not release the memory when the form is closed.
Basically, set all you objects to nothing
- gaffa