Link to home
Start Free TrialLog in
Avatar of 031943889
031943889

asked on

Run-time 7 - Out of memory from visual basic application - HELP ME!!!

Hi everyone,

I tried to distribute small VB app to machine with OS win98 with 128MB RAM, 1G HD Free
Some forms are loaded realy fine, and 1 or 2 forms make run-time error 7 - Out of memory.
I delete all the tmp files on the machine, i clean the HD from junk and checked all the applications that runs in
memory using Ctrl+Alt+Delete - And the problem steel exist.

Note that i don't get this run-time error from any other OS , XP or 2000 and even 95 - are work fine with the same
application and distribution package (install shield).
Any way, i tried to install Visual Studio on this machine, to find out where is the bug, and then
surprise - the message is no longer there.

What is your conclusions from this little story ? where did i go wrong ?

THANX ;-)
Avatar of PaultheGreat
PaultheGreat

Dear 03... (nice name ;-) )

From your story, it sounds like one of the objects/devices/etc. that your program uses wasn't registered correctly on the Win98 machine... Thus, when your program tried to load the object or use it, it got stuck trying. This type of thing, depending on the cirumstances, could cause any number of errors, because the .dll or .ocx or whatever could be messed up in any number of ways. Installing VStudio fixed this because it replaced the faulty file with a good version... did you have VStudio or VB installed on all the other machines you tried your prog on? If not, then they probably just had a good version of the dll or ocx or whatever, and you 98 machine didn't. If you package your app and create an install file with the VB tool for that, make sure you're using good updated versions of the reference files... and make sure your install files aren't getting corrupted in any way.

Hope this helps!
-Paul
Avatar of 031943889

ASKER

Dear Paul,

For your first question, i didn't installed VStudio on every machine i installed the application (:-<)
I am using InstallShield to distribute my application, and the package installed the application
successfully in like 30 or 40 machines so far without this specific memory bug.

The weird thing, is that the form that make the run-time error, is using the same components
that other forms loaded successfully is using.

Paul, can you think on specific file that could generate this bug ?

The files i distribute in my App are :
============================
Windows System Shared Files:
------------------------------------------
file0=C:\WINNT\System32\RDOCURS.DLL

Windows System Self-reg Shared Files
--------------------------------------------------------
file0=C:\WINNT\system32\COMDLG32.OCX
file2=C:\WINNT\system32\TABCTL32.OCX
file4=C:\WINNT\system32\scrrun.dll
file5=C:\WINNT\system32\MSSTDFMT.DLL
file6=C:\WINNT\system32\MSDBRPTR.DLL
file7=C:\WINNT\system32\MSDATLST.OCX
file8=C:\WINNT\system32\MSDATGRD.OCX
file9=C:\WINNT\system32\MSCOMCTL.OCX
file10=C:\WINNT\system32\MSCOMCT2.OCX
file11=C:\WINNT\system32\MSBIND.DLL
file12=C:\WINNT\system32\MSADODC.OCX
file13=C:\WINNT\system32\msdatsrc.tlb
file14=C:\WINNT\system32\MSMASK32.OCX

+ Visual Basic 6 Runtime Files + MDAC2.5

........... thanx .............
If you use Microsoft forms 2.0 and you don't have installed Microsoft Office  (or some part of the Office) on this computer you will receive "Error 7 - Out of Memory" Error Message.

You just need to have fm20.dll on this computer.

For more information take a look at:


http://support.microsoft.com/default.aspx?scid=kb;EN-US;241245

Maybe this will solve your problem.

Darko
If you are using Richtextbox control control in your project then this is the answer for the surprise behaviour of your application:
This error comes when you deploy the wrong version of riched32.dll on the client machine. There are three versions of riched32.dll and of these three versions, one version can't be deployed. These links will tell you the whole story.

http://support.microsoft.com/default.aspx?scid=KB;en-us;q236286
http://support.microsoft.com/default.aspx?scid=kb;EN-US;197580
Sorry guys ,but i am not using one of those controls in my application...:->
I developed it in VB6 sp5.

I forgot one part in my story :
The machine with the problem had OS Win98 hebrew version (RightToLeft alignment is default).
Before i installed the VStudio on the machine with the problem,
the application's menu-bar and some labels ,were in LeftToRight
alignment . After installing the VStudio - the alignment turn back to RightToLeft (normal in this OS).

I dont know if this connected to our problem, but you guys should know about that.

THANX AGAIN...........->>>>
its happen bcz NT  based OS and win9x hav diff memory managment

u need to debug it
try to run with source on win98 pc and then where it breaks
wat is the couse of error
so we can handle it
Dear Asif,

That's what i tried to do,but when i installed VStudio on the machine, the bug
is no longer there.

;->
Asif, that doesn't seem like that's the problem, since he got it working fine on win95...

03...etc...., you said you got it working fine on 30-40 machines... were any of these also win98? was there just one win98 machine out of several that didn't work? where there other win98 machines hebrew version that did work? i can't imagine right-to-left instead of left-to-right text alignment would give you an error like that, but it does sound like you're getting the error because it's win98 hebrew version. it is still my opinion that there is a control or something that installshield didn't set up correctly when you installed your prog on the win98 hebrew version, but installing vstudio fixed it. i'm not sure what specific control(s) might be causing this, but it seems like maybe you need a hebrew version of that control in the install file?! as crazy as that might sound... i dunno... if you're servicing a lot of hebrew people, then this quite possibly could continue to be a problem for you, but if this is the only instance of it then i'm not sure if you need to worry about it too much
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in approximately one week.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->PAQ - no points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of YensidMod
YensidMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial