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!

Runtime Error 7 Out of Memory

Status
Not open for further replies.

panadoll

Programmer
Feb 28, 2002
52
SG
Hi,

I developed a software using vb6 with ms access and crystal report 8.5. i packaged this software using deploymaster.

After I installed the software in Windows 98, I manage to run the software. However, at certain part of the software, I will encounter "runtime error 7 out of memory". This problem was not encountered at all in Win2K.

I don't think this problem is due to any memory problem. I was suspecting whether it got to do with any dll, but I just can't find the problem.

Can anyone please advice me on how to solve this problem?
Thanks
 
Hi there

are you sure it's not a memory thing?

If it is this is what i found

Out of Memory
More memory was required than is available.

There are too many applications, documents, or source files open.Close any unnecessary applications, documents, or source files that are open.

There is a module or procedure that is too large.Break extremely large modules or procedures into smaller ones.

There are terminate-and-stay resident programs running.Eliminate terminate-and-stay resident programs.

There are too many device drivers loaded.Eliminate unnecessary device drivers.

Transcend
[gorgeous]
 
The problem is "Out of memory" error might not be due to memory. Sometime it is due to Dll. Previously, I encountered this problem also, and it was solved when i added in the oleaut32.dll and olepro32.dll

Suddenly this problem occurs again. Which I do not understand why.
 
Is there much difference memory-wise on the windows 98 box and the windows 2000 box?

Transcend
[gorgeous]
 
It cannot be memory problem. cos i am only running my program. Moreover, it is installed on a fresh new copy of windows 98 and windows 2000 platform.
 
I just got a big discovery.

If I do not reboot my windows 98 after setup, my software will run smoothly. But, if I reboot my windows 98 after setup. It will prompt me "runtime error 7 out of memory".
 
Ah ok .. by memory difference i actually meant are the two boxes the same build.
Anyone else got ideas?

Transcend
[gorgeous]
 
huh.... boxes???
I have not seen the box for win 98.

I really have no idea what happen. Tried every forum and every search engine. There is one particular site which indicate that, this problem might be due to memory or might be due to any generic problem which vb do not recongize.
 
We experienced similar "rogue" messages in W9x - due to excessive windows - worked around it using windowless controls available from Microsofts web page (can't put hand on link at moment, sorry)

Although the error message states out of memory, it's more likely to be out of resources (by default every control on a VB form uses a window handle) - so, if you have a lot of physical windows, or a lot of controls in your project, you may experience this.

Jon
 
I finally found the problem.

I have to include the riched20.dll into my deploy package. Once this file is updated, The program runs smoothly.

Thanks to Transcend and cfpsoft for helping me...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top