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....
