Results 1 to 3 of 3

Thread: There is not enough memory available for this task

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    1

    Post

    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
    [email protected]

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

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    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.

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width