Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing memory
Message
 
À
31/12/1999 19:03:54
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311067
Message ID:
00311420
Vues:
20
>How can I release memory? Both for regular variables and for arrays? I found the "erase" command, but it will just reset the values of my array and not release the memory since they're not dynamic. And that's not what I'm needing.

You simply can't do that!

VB have an automatic garbage collector for variables. (Almost) As soon as a variable get out of scope, it's pointer is released.

If you declare OBJECT variables (Dim x as Object or Word.Application and the like), you can release them using "Set X = Nothing".
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform