Hello everyone,
I am new to how to catch uncaught exception. From some self-learning, I think we should use, event handler for AppDomain.CurrentDomain.UnhandledException other than Application.ThreadException if we are writing console or Windows service, right?
Application.ThreadException is for Windows Form application, not console and Windows Service application?
thanks in advance,
George
George GeorgePosted Apr 28, 2008, 2:26 AM
Thanks Brandon,
Sorry I mean for non-UI program, like console application and Windows service application, we should use AppDomain.CurrentDomain.UnhandledException other than Application.ThreadException, right?
(I think Application.ThreadException only works for Windows Forms application, not works for console and Windows Service application)
regards,
George
Posted Apr 28, 2008, 2:13 AM
George GeorgePosted Apr 27, 2008, 2:47 AM
Sorry, maybe I have not made myself understood. My question is how to be notified of uncaught exception?
regards,
George
Bechir BejaouiPosted Apr 26, 2008, 9:02 PM