Link to home
Start Free TrialLog in
Avatar of Masterabhi
Masterabhi

asked on

visual studio just-in-time debugger message box with message "an unhandled exception win 32 exception occured"

I am using a Window Application. While running that application I got this error-
 "an unhandled exception win 32 exception occured" in Just-in-time debugger.
It crashes the application. I am using Visual studio 2008. Is ther any solution I can resolve this error?
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi Masterabhi,

well, the 'just-in-time debugger' dialog is only shown on machines with installed VisualStudio. On machines without installed VisualStudio the application will crash with another message (dependant on the used Windows version).

The only way to get rid of this is to solve the bug in the application which leads to the unhandled exception.

Is this application written by you? If so you can debug the application to find the problem and hopefully a solution. If the application comes from anywhere else you have to talk to the developer(s) to solve the problem ...

ZOPPO
Avatar of Masterabhi
Masterabhi

ASKER

I am trying to solve the bug in application but I don't want my application to be crashed when this error occurs.
Did you maybe compile your application in debug mode?
You need to compile it in release mode to run it without debugging.
There's most probably no possibility to avoid a crash in a senseful way - of course you could write something like a global try/catch to avoid the exception makes the program crash directly, but thus the application will go into an undefined state and may cause more harmful problems like damaged files, inconsistent data in a DB, a possible security vulnerability or anything else ...

The only suitable (and the preferred) way to solve this is to solve the bug which causes the exception.

ZOPPO
Thanks for your time and reply, thought I am not able to catch that exception.
ASKER CERTIFIED SOLUTION
Avatar of Mathiyazhagan
Mathiyazhagan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it helped me