Re: Error: 7 Out of Memory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks to Ken and Bob for their responses.

I implemented the debug code suggested by Ken, which is in the spirit
of Bob's suggestion to make sure the file is closed, but it yielded the
same results, I got to the Load COMStatus line, but didn't get into the
Form_Load procedure. I did glean one more small tidbit of information.
I discovered the error definitely happens in Main() and not inside the
COMStatus forms Form_Load() procedure.

I put the following debug statement in every routine's error handler
that I know gets called before the Load COMStatus line that fails.

DebugPrint Err.Number & " " & Err.Description & " " & Err.Source
_
& " " & Err.LastDllError & " Module basPortctl Procedure
ConfigurPorts", Timer

Are there any other thoughts about this problem? Could this possibly
be a hardware problem? DLL? OCX? Registry?

Bob O`Bob wrote:
skoxlien wrote:

As you can see I have added test messages written to a log file so I
can see where I get to. I hit the Load ComStatus, but it never
actually gets into the Form Load routine of the ComStatus child form,
because I have another test message in there as the first thing, and it
never gets written into the log file.


You do not actually know that for certain. It may be correct, but it
also might not.

Unless you close the file after every write operation, you do not know
if there were lost buffers when the app halted.

Personally, I use the INI file APIs (writeprivateprofilestring) for that
kind of investigative logging.



Bob
--

.



Relevant Pages

  • Re: Error: 7 Out of Memory
    ... I implemented the debug code suggested by Ken, which is in the spirit ... I put the following debug statement in every routine's error handler ... that I know gets called before the Load COMStatus line that fails. ... be a hardware problem? ...
    (microsoft.public.vb.bugs)
  • Re: Error: 7 Out of Memory
    ... I hit the Load ComStatus, ... actually gets into the Form Load routine of the ComStatus child form, ...
    (microsoft.public.vb.bugs)