Re: VB application crashes




"expvb" <nobody@xxxxxxx> wrote in message
news:eOiHQMo0GHA.1288@xxxxxxxxxxxxxxxxxxxxxxx
"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.


If you don't have VC++ download WinDbg
http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

Follow the same procedures for setting up your VB debug exe.

-ralph




.



Relevant Pages

  • Re: Ok in IDE but fails when run as an EXE
    ... You could try changing the build options to generate symbolic debug info in ... the EXE, and then debug it with an external C debugger. ... > Object2) is using custom objects built by the ComExpress generator, ... > stops the ComExpress app from working. ...
    (microsoft.public.vb.enterprise)
  • Re: Compile - file is not open error
    ... simple hello world type prg and compile it I still get the error. ... I uninstalled and reinstalled VFP9 and SP1 and still get the problem. ... This is happening on my desktop (XP Pro SP2). ... The normal exe is about 4.8MB. ...
    (microsoft.public.fox.helpwanted)
  • Re: acnormal problem
    ... the conversion and .EXE to actually work? ... >Access databases cannot be compiled into executables. ... >installed will be able to install the runtime version of ... if I get to the point where I can compile my ...
    (microsoft.public.access.formscoding)
  • Re: Compile Differences, WinXP-Pro and Win2K
    ... Likewise, if I compile on Win2K, the same thing happens on my WinXP Pro machine. ... But the EXE itself is different, a byte here, a byte there, but a total of around 1,000 differences in a 1 MB file. ... This happened once during this app's development, when I tried to compile to Native code, so I switched back to P-Code, and the problem disappeared. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 Compiler
    ... various types of sections within the .EXE; ... sections, readable and writeable sections, executable code sections, common ... I've also noticed that the EXE file size ... loading the project to compile. ...
    (comp.lang.basic.visual.misc)