win2k vs win98 Runtime Error 7 "Not enough Memory"

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

"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.
gbuslettaAuthor Commented:
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.

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.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gbuslettaAuthor Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.