|
-
May 27th, 2005, 06:16 AM
#1
VB and Memory Leaks
If you are doing operations and VB needs more memory, it will allocate it. But unlike C, C++ or .Net VB will not release it until sometime after your app closes (There is no garbage collection). This would be the reason that some app run out of memory or run low on memory while in repetitive loops due to no fault of their own (well, sometimes it is their fault).
Unfortunately there is nothing you can do to avoid this. All you can do it limit the damage by releasing the object you create (setting them to nothing). But, sooner or later if your app runs for any length of time... It will happen.
The only way to avoid this is to restart your app when resources get low. Not great but that's the way it is....
Last edited by randem; May 28th, 2005 at 06:10 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|