Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct Programmatic Behavior.

Status
Not open for further replies.

micman

Technical User
Jul 5, 2002
71
GR
I'm creating a rather large (with in reason) application and start having problems with Win98 which reports "Out of Memory" Errors after i run the program from withing VB enviroment couple of times.

The 'SysMon' showed a large increase of the allocated memory (about 60MBs) which is not released when i end the program or even when i quit VB.

When i try again to load VB and run the program again i get the 'Out of Memory' error.

I tried to Unload all forms, Close all files, Clear all arrays, and a bunch of other stuff but the problem still remains !!!

Does any have any suggestions on how to fix this (Besides upgrading to Win2k)...

Thanks ....
Random is what we can't see
Devine is what we can't understand
and If 1=2 then I'm the pope
 
Uhhh...what exactly does your program load into memory in the first place? Sample / pseudo code would be very helpful in this case.

And, go to Win2k anyways [thumbsup2], -iNSTA
aim: instar4per
email: instar4per @ hotmail.com
 
I load about 23 Forms, in the Main() procedure.

Anyway i've decided not to preload all the forms at the beginning of the Main() procedure but as the user requests them (after using the form to enter data the program will unload the form to avoid using extra memory).

In this particular case changing to Win2k is not an option.


ARISTON Engineering Ltd
Michael Vezyrgianopoulos
R&D Manager
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top