Results 1 to 7 of 7

Thread: Wierd Out of Memory Error

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    2

    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

  2. #2
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    Check the call stack in the IDE. You may be 'Show'ing the form recusively. Try Showing Modally?

  3. #3
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    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

  4. #4
    mcsd2002
    Guest
    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!

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    2

    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

  6. #6
    New Member
    Join Date
    Jul 2002
    Location
    Northern KY, USA
    Posts
    1

    Unhappy 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

  7. #7
    Addicted Member
    Join Date
    May 2002
    Location
    FlyingOffice
    Posts
    178
    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
  •  



Click Here to Expand Forum to Full Width