Click to See Complete Forum and Search --> : Free memory with a Vb app


October 7th, 1999, 02:10 PM
Does anybody know how to free memory in a vb app.
I found a vbs file wich contained:
FreeMem = Space(24000000)

I would like to do about the same in vb

thnx

BrewGuru99
October 7th, 1999, 06:09 PM
This isn't freeing memory, it's taking it up, majorly. It's creating a string consisting of 24M spaces and assigning it to the variable "FreeMem".
(Which, by the way, would be a good example of a bad variable name.)

Aside from that, I can't really awnser your question, other then to unload unused forms, make variables only as big as nessary, etc.

BrewGuru99