PDA

Click to See Complete Forum and Search --> : There is not enough memory available for this task


dcerny
Nov 16th, 1999, 03:54 AM
I've written a VB 5.0 app that uses an 84KB Help file. Version 1.0 of the app was 1432 KB in size.

Adding another form and code to make version 1.1 made the app 1628KB in size. Now when I try to bring up help, I get the message:
"There is not enough memory available for this task."

The PC has 64 MB of memory, and I've increased the size of the swap file to 75MB, but nothing works. Does anyone have any suggestions?

------------------
Don Cerny
dcerny@csc.com

[This message has been edited by dcerny (edited 11-16-1999).]

Bob Baddeley
Nov 16th, 1999, 05:51 AM
check your system resources while the program is running by using Resource Meter. Also check to make sure you don't have multiple instances of the program that could take up lots of extra memory. Don't run other programs at the same time in order to increase RAM, try running it right after you start the computer so you still have lots of free memory, press Ctrl-Alt-Del to see if there are any hidden programs running that shouldn't be, and if none of that fixes or indicates your problem, beat the computer once or twice with your fist.

MartinLiss
Nov 16th, 1999, 08:47 AM
If you have multiple forms, unload them if you can instead of hiding them, and when you unload them Set frmMyForm = Nothing. Text strings also take up a lot of space. Consider loading messages from a database or resource file only when they are needed. Do you have large, fixed, arrays? If so, you might want to dimension them dynamically. Are your variables dimensioned? If not they are Variant by default and, I believe, take up 12 bytes each, as opposed to 2 - 6 bytes for other variable types.

------------------
Marty