Kiran's Blog

Ramblings from a dehydrated mind…

  • Archives

    • 14,907
  • Advertisements

First & Second chance exceptions…

Posted by kiraninbng on July 3, 2006

If the application is in the debug mode,the debugger will see all the exceptions before the application does.When an exception occurs the debugger will get the first chance to see the exception(First-Chance Exception).It will either handle it(go into the debug mode) based on the debugger settings or will pass it on to the application.

If the exception is not handled by the application the debugger will see the exception again,it will get a second chance(Second-Chance exception).The unhandled exception for the second time usually will terminate the application,if the application is running in the debug mode,it will break into the debugger.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: