Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Static variable
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00404958
Message ID:
00405007
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform