Friday, December 10, 2010

CLR Exception Misc Notes(continuously updated)

 

  • Different unhandled exception for WinForm and Console (from debugging .net app 2.0)

for winform, if unhandled exception thrown from pool thread/background thread/ finalize thread, AppDomain.UnhandledException event will be called.

For Console, main thread still runs, just as if you have handled them

  • Unhandled exception dialogs shows while your app still running

so, you app’s state may be changed, you cannot get the image when the exception is thrown, until you set external debugger to auto attach when it happens.

 

 

No comments:

Post a Comment