Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing memory
Message
 
To
31/12/1999 19:03:54
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00311067
Message ID:
00311420
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform