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 John Tel 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.

eman6

Programmer
Dec 7, 2004
578
CH
I have developped an application with VB 6 and MS Access.
I created the installation with InstallSchield.
I tried to install it in different PCs and laptops. It worked so far in all of them (2 laptops and 2 Desktop PCs) except my client, who has a German Version Windows XP Professional with up to SP2 and a number of hotfixes and MS Office Basic Edition (also German).
The installation goes normally, but when I click to run the application, it give "Runtime error 7. Out of memory".
This is a brand new Notebook with plenty of memory, both HD (60GB) and RAM (512MB).
Could it be the German Version Windows? If yes, anybody has any idea what I could try to solve it?
If not, what could be the cause and what possible solution?

Mayn thanks in advance. It's really urgent.

Eman_2005
Technical Communicator
 
This is not a solution but rather a suggestion...

If you have clients in Germany then you might want to get your hands on a German version of Windows.

Do you have Service Pack 6 for visual studio?
 
Yes, Sheco, I do. I always make sure to have the latest service pack for Visual Studio.
As for the German thing, well, I have the hard luck of living in Switzerland and serve 4 Lanuages: French, German, Italian, and of course English. Would you suggest I purchase 4 PCs or Notebooks with different language version each? What about those who have Win 2000 and Win NT, also in different languages? Let me see, 3 different windows, 4 different languages makes 12 PCs, right?
Sometimes I hate Democracy. If we all had to use the English Version of the latest Windows, wouldn't Software developers spare tons of trouble? ;-)


Eman_2005
Technical Communicator
 
Many times in VB out of memory errors are caused by either recursive function calls, or memory allocation that doesn't quit, like ReDim Preserve statements in an endless loop.

Lee
 
You can also add line numbers to every procedure that running at start-up, and in error handling portion of them report into log file the procedure name and the line number (erl function). I assume you have one of free add-ins that would insert line numbers for you.

Microsoft also published this error and it's workaround. It makes sense to look at, what if it is your case. Just make a search at "Runtime error 7. Out of memory" at Yahoo.

vladk
 
First: There is no recursive function call in my program, otherwise it would crash in all PCs and not in just this one.
Second, I looked already in yahoo for this runtime error, but the cases eaither were completely different or it leads to a forum where I have to subscribe. I just don't want to subscribe to too many forums. This one is an excellent one; you guys are very kind and helpful; and so far I got many solutions and ideas from here already ;-)

Now back to my Runtime error 7 Out of memory and Microsoft: I looked there at first. Does not look like they deal with Language version related problems, which I think would very probably be the cause, since it worked fine with English Windows.

Eman_2005
Technical Communicator
 
Actually, I am hoping there is some kind of setting somewhere in Windows that I can modify to prevent this error.
hmmm, why would a different language version cause memory error? Some memory addressing problem rather than quantity of memory, maybe? ;-(


Eman_2005
Technical Communicator
 
Have you completely ruled out software conflicts and hardware problems? Can you get it installed on another computer with the German Windows OS?

Lee
 
That's a good point, Trollacious.
Unfortunately, I did not have the chance to try it on another German Windows, but I'm planning to try.
Regarding ruling out Hardware and Software conflicts, the funny thing is that a previous version of my program worked in the same Notebook with the same Windows and stuff. I cannot think of anything I have added that could have possibly caused such a problem, except a small splash screen at the beginning.
It's not a huge application. I am tempted to put it in my company web site for downloading if one of you has a German Window (or any non-English Window) and willing to try.



Eman_2005
Technical Communicator
 
The real change that happened in the mean time was in the Notebook itself; a number of Microsoft hotfixes which I guess worked by automatic update setting (scary, isn't it).
My client has not been using the Notebook much, other than that.

Eman_2005
Technical Communicator
 
I thought maybe a memory stick going bad at a certain address, or, like you mentioned, software being installed that might be running in the background.

Lee
 
It looks like I need to include the German ODBC stuff during the packaging and deployment.
Not sure where to get them from, though.
I guess from Microsoft.

Any comments?

Eman_2005
Technical Communicator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top