Re: VB application crashes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Co" <vonclausowitz@xxxxxxxxx> wrote in message
news:1157564633.229869.298470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,

I have created an VB application with a MDI form and a lot of
Childforms.
When I run the application in VB environment there are no problems but
when I compile it
into an executable and start the program there is one sort of form that
makes the application crash.

I get the error that:
An error occured and VB will be closed.

I tried to find where things go wrong but that's not possible.

Can anyone help me with some tips here...

Marco


- 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>.
- 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: Installing WOW on seprate Partition ?
    ... I have a book from 1987 which has the source code of Minix in it. ... Can you run Windows XP on a sparc, arm, powerpc ... compile on one nix platform can also be compiled on other platforms most ...
    (alt.games.warcraft)
  • Re: Installing WOW on seprate Partition ?
    ... I have a book from 1987 which has the source code of Minix in it. ... Can you run Windows XP on a sparc, arm, powerpc ... compile on one nix platform can also be compiled on other platforms most ...
    (alt.games.warcraft)
  • Re: good C compiler
    ... Just compile ready source code, ... If you're on Windows, then you can try Visual C++ 2005 Express ... You can get gcc for windows too, try the cygwin implementation, ...
    (comp.lang.c)
  • Re: Python 2.5 ; Effbot console ; thank ; pb release.
    ... some days, I ask myself why I shouldn't just use GPL for everything I do, and ship it as source code only. ... To which I presume the answer is that you are considerate of Windows users who'd rather not compile their own Windows applications due to the cost of using the commercial compilers and the complexity of using the open source ones. ...
    (comp.lang.python)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... There's always the "Platform SDK" from MSDN if you need the window.h stuff, ... Since I'm using the Command Prompt rather than the GUI to compile the ... I then tried to compile your source code and I kept getting the same ...
    (comp.lang.tcl)