Re: VB crash - Can anybody read a memory dump?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Besides what Ralph suggested, here is a method to pinpoint the cause of a
crash in a compiled VB6 app using VC++:

- In VB6, in the project's properties, go to the Compile tab and select
"Create symbolic debug info". This will create a PDB file when you compile
your project.
- Save and Compile.
- Run the EXE from Windows Explorer.
- Go to VC++ 6.0|File|Close Workspace.
- Go to Build|Start Debug|Attach to process, and select your running EXE.
- Go to View|Debug Windows, and make sure that "Call Stack" window is
visible.
- Let it crash.
- The call stack shows you where the problem is. One of the lines will point
to your source code, when you double click on that, it will show you the
source code and points to the exact line that caused the error.
- If the program closed normally, or you want to try again, go to
Build|Execute <Your EXE file name>, then use "Attach to process" again.
- There are some settings that you could change, if necessary, in
Project|Settings|Debug.

See also:

How to debug a native code Visual Basic Component in Visual C++
http://support.microsoft.com/kb/166275/EN-US/

How To Debug a Visual Basic Out-of-Process Server with Visual C++
http://support.microsoft.com/kb/200034/en-us

Make sure that you disable "Create symbolic debug info" before releasing
your software.



.



Relevant Pages

  • Re: [PATCH] fix error handling in load_module()
    ... During our testing following call trace was seen. ... to compile the kernel based on the distro config and try to insert all the ... Where did it crash and why did it crash? ... unsigned int i; ...
    (Linux-Kernel)
  • Re: Help;-( internal compiler errors after patchday
    ... The crash is usually caused by a bad device driver (54%-80% of all such crashes are caused ... HP scanner driver could would poll the scanner every so often, but if the scanner had gone ... Now, when i compile, i can be pretty shure that somewhere in the ...
    (microsoft.public.vc.mfc)
  • Re: HELP!!
    ... smart enough to know how to attach a debugger to a remote process. ... When you say you are unable to install your program, ... Well, if it didn't compile, you would probably not install it ... A compiled program may crash just fine without giving any compiler ...
    (microsoft.public.dotnet.general)
  • Re: Access Reports crash on NoData event
    ... The event should not crash Access, so something else must be going on, either with the queries, the compiled VBA, or Access' confusion about the objects ... Compact the database to get rid of this junk: ... Still in the code window, choose Compile from the Debug menu. ... NoData event if non-existent criteria are entered to run the report. ...
    (microsoft.public.access.reports)
  • Re: WaitForSingleObject
    ... >Call WaitForSingleObject(AddressOf ASampleFunction, 100) ... >It will compile and not crash upon running. ... MVP - Visual Basic ...
    (microsoft.public.vb.winapi)