Release versus Debug exception problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to implement an app level event handler. For starters I jus
wanted to trap the bubbled up exception in my main function and display
dialog box. It works fine in debug mode but in release mode it pops up
windows error dialog with a stack trace. How do I configure things t
handle the error the same in debug as it does in release

tr

Application.Run(new frmMain())

catch (Exception ex

MessageBox.Show( ...


thanks
jagdish
 
* "=?Utf-8?B?SmFnZGlzaA==?= said:
I'm trying to implement an app level event handler. For starters I just
wanted to trap the bubbled up exception in my main function and display a
dialog box. It works fine in debug mode but in release mode it pops up a
windows error dialog with a stack trace. How do I configure things to
handle the error the same in debug as it does in release?

Add a handler to 'System.Windows.Forms.Application.ThreadException'.
 
Back
Top