win2k vs win98   Runtime Error 7 "Not enough Memory"

Posted on 2003-03-04
Medium Priority
Last Modified: 2010-04-07
Hello Everyone:
I am developing a automated test program for testing electrical comcponets of a circuit.
The problem I am having is that I developed the software on a machine that had Windows 2000 installed. I had to remove win2K from that machine in order for another software package that my VB code calls to run properly. this software ONLY runs on windows 95 or windows 98. I installed windows 98 and everything is going well, but now when I try to run my code, I get runtime error 7 "Not enough memory"

How do I fix this? I don't understand why I am experiecning this error now, especially when this is the same machine except with win98 instead of win2k.
Does anyone have a solution?
I would appreciate any help that can be provided. I am at a stand still until I can get this resolved.

Question by:gbusletta
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8067022
"Not enough memory" is something of a "catch-all" error - it has about a million possible causes.  You're going to need to post some source code before anyone will be able to help you.

Author Comment

ID: 8072359
What I am doing is loading an "Main" window which acts like my workspace. From theri I use menu controls to do File->New->Test using code:
  Dim F As FrmTest1
  Set F = New FrmTest1

the user than picks some stuff from drop down boxes etc. and hits a "Next Button" which hides thies Test1 form and opens the next form to load more info about the test.
The reason I am hiding this form is to allow the used to use a "previous" button to make changes to the initial test setup.
The next form is loaded in the smae manner as Test1
    'load the next form
    Dim F As FrmTest2
    Set F = New FrmTest2

This is where the machine tells me that is does not ahve enough memeory.
Now I do open a few databases when the Main  form appears and I do have  quite a few Public Variables (about 50) but everything worked fine with the win2K machine.


Expert Comment

ID: 8080285
Does the problem occur at the Set statement or the Show method?

Windows 95, 98, and ME have more memory usage restrictions than the NT flavors do, so you should try commenting out some of the publics or databases to determine whether that is the problem.

If possible, I would disconnect some of those databases before showing FrmTest2, and then re-connecting later if the user backs up.

Of course, this may be a problem with that software package you're calling.  Comment that out and see if it works any better.

If commenting out the software package does fix the problem, that doesn't necessarily mean you can't use the package - it may work okay compiled.  Try "Make MYPROJECT.EXE" and see if the EXE works any differently.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Accepted Solution

gbusletta earned 0 total points
ID: 8300428
Thanks to everyone who submitted a reply.
I ended up just dividing some of my larger forms into a series of smaller ones and everyon is ok. I don't like the look of it now, but it funcitons and for now, that is all that is importatn.
Thanks once again.

Expert Comment

ID: 8900706
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
LVL 49

Expert Comment

ID: 9046839
gbusletta, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 10 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question