Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Static variable
Message
 
To
15/08/2000 11:08:31
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00404958
Message ID:
00405007
Views:
19
>Really!
>This is not done by the Unload statement!!!

When you unload a form, a request is sent to the garbage collector, but not really unloaded now. When VB decides (depending on memory requirements, available CPU time and others), it really removes it from the memory.

Setting your object to nothing forces the garbage collector to immediately remove this object (not the complete trash can).

This is a good thing that the garbage is not automatic. When you unload a form and request it a short time later, chances are that the form is still in memory and then reused (instead of reloaded).
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform