|
-
Nov 16th, 2000, 06:34 AM
#1
Thread Starter
New Member
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).
-
Nov 16th, 2000, 06:54 AM
#2
Addicted Member
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
-
Nov 16th, 2000, 07:28 AM
#3
Set Form1 = Nothing 'removes all that are using memory
Unload Form1 'Unload form from menu
Use both.
-
Nov 16th, 2000, 08:01 AM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|