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
Bechir BejaouiRank #144 · 15.9K pointsPosted Apr 26, 2008, 5:02 PM EDT
George GeorgeRank #2,261 · 618 pointsPosted Apr 26, 2008, 10:47 PM EDT
Sorry, maybe I have not made myself understood. My question is how to be notified of uncaught exception?
regards,
George
Former memberPosted Apr 27, 2008, 10:13 PM EDT
George GeorgeRank #2,261 · 618 pointsPosted Apr 27, 2008, 10:26 PM EDT
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