Debugging Application Crashes

C

Charles Evans

Morning!

I have this C# application that occasionally crashes complely and doesn't
return any error to the VS IDE. The crash comes as a Microsoft error dialog
stating "Application.Exe has encountered a problem and needs to close.". It
allows me to examine an error signature but i have no idea how to use this
to my advantage. When I click debug I get an error message from the JIT
debugger stating that an "Unhandled Win32 Exception" has occured in
Application.exe. However, a debugger that cannot handle the exception type
is already attached to the process." FYI: I am running the application
through the VS IDE.

The strange thing about this error is that sometimes the application is
dormant (no user activity) but will crash when another application starts.
My question is how I should go about trying to find out what is actually
causing this error. Are there some advanced debug tool out there that might
be able to provide some more information? I don't even know where to begin.

Also interesting to note is that this error only occurs when using the SAP
..NET connector. (v2.0). I have posted on the SAP connector forums about
this but so far no one else seems to have experienced this problem.

If anyone has any tips I would really appreciate them.

Thanks in advance,
Charles
 
A

Andy Mortimer [MS]

You might find this link useful

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q286350

You will probably want to use Windbg.

http://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx

Launch the exe from within windbg and look at the calkl stacks of when the
problem occurs.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top