|
-
May 2nd, 2002, 07:56 AM
#1
Thread Starter
New Member
Wierd Out of Memory Error
Okay, I have a program that has recently come back to me having issues of Out of Memory Errors (Err#7) coming up on some people's machine when they run it. After doing some checking and alot of work with some of these specific people I have tracked the offending code down but the problem is I see no reason why it is causing the error at all or have any clue how to fix it.
The error is occuring when I use the Show command on a form. I have no clue why it is causing this error as use of the show command of some of the other forms in the project do not cause the error (atleast the first two forms that use the Show command work perfectly).
Now the program works perfectly fine on my machine and on a bunch of other peoples machines, so I can not directly reproduce the error. Therefore I adding logging code to my program till and had them run it to track down the offending spot and in every single case it came down to the Show command. Now I do know that the computers having the issues have plenty of memory (all had 256 meg or more) and they didn't have anything else but the OS running at the time.
If anyone could help shed some light on this problem, I would be greatly appreciative.
-TL
-
May 2nd, 2002, 08:12 AM
#2
Frenzied Member
Check the call stack in the IDE. You may be 'Show'ing the form recusively. Try Showing Modally?
-
May 2nd, 2002, 08:25 AM
#3
Fanatic Member
I Encountered a similar problem whilst working on a project...
We found that when shopwing a particular control in Win98 & 95 we got out of memory errors or the resources went down to 1% or something around that figure....
This was a custom control that used a 3rd party control by sheridan..
We were unable to replicate it on our machines (Win 2K), but could replicate it on win 98...
However we could not find the memory leak...
Eventually, after many days of frustration we simply rewrote the control using a microsoft control in place of the sheridan one.. this solved the problem..
Now i realise that thsi is not identical to your problem, but does the form in question have a control that is not used on the forms that load fine???
Leather Face is comin...
MCSD
-
May 2nd, 2002, 08:54 AM
#4
We had a similar problem with an app we were installing...
We found that a dll we were using (fm20.dll) was not redistributable and would cause the 'out of memory' error on PC's that did not have MS Office 97 or higher loaded. We re-wrote the app so that we no longer used that dll and wha la! the problem was solved. Maybe this info will help. Good Luck!
-
May 2nd, 2002, 10:30 AM
#5
Thread Starter
New Member
Thanks for the Replies
Thanks for all the ideas. I've went back and looked at the program to see what DLL and OCX files I have it set to use:
comdlg32.ocx
rich32.ocx
mscomctl.ocx
Now, wondering about this I went and used the VB6 Deployment Wizard to see what dependencies it has and it lists the following:
Uses1=MSVBVM60.DLL
Uses2=OLEAUT32.DLL
Uses3=OLEPRO32.DLL
Uses4=ASYCFILT.DLL
Uses5=STDOLE2.TLB
Uses6=COMCAT.DLL
Uses7=COMDLG32.OCX
Uses8=MSCOMCTL.OCX
Uses9=RICHTX32.OCX
I now am left to wonder where some of these are used at. I know that MSVBVM60.DLL is the VB6 Runtime DLL, and assume the OLEAUT32.DLL & OLEPRO32.DLL are the other default DLLs used by a VB6 program. But what is ASYCFILT.DLL, COMCAT.DLL, and STDOLE2.TLB?
Not knowing what these are, I'm wondering if they may somehow be the cause behind the issue.
-TL
-
Jul 16th, 2002, 09:37 PM
#6
New Member
Oddly familiar
We seem to be having this same problem right now with a form using an HFlex grid...
On my machine (Win2K) no problems, I don't run out of memory.
On all the others (Win95) after about two or three scrolls of the mouse wheel you're down to about 3% system resources and the graphics on the dropdowns start turning to numbers.
My guess is it's something to do with the Scroll() method, but is there something common that I should be looking for that would display itself on a Win95 machine and not Win2K (machines are IDENTICAL as far as hardware, just a different OS)
Thanks
-Mix
-
Jul 16th, 2002, 09:51 PM
#7
Addicted Member
We have similar problem for long time.
We develop custom controls (inside only use MS controls),
in some machine (Win98 192MB) it say out of memory,
in some machine (win2k, 128MB) it is ok
The problem is it is intermitten (ie not always happen)
Now, it becomes more funny. Inside IDE, it no longer tell me out of memory,
instead it says that there is another wrong version of custom in the memory, then the program just refuse to continue!
FROM THE OLD DAYS OF LEARNING COMPUTER, OS SHOULD BE PREDICTABLE, RELIABLE..... Now I wonder whether I should call this as an OS, or just a platform for toys...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|