Solution for catching error & report errors in application
I see in some applications, when a bug happens, a dialog will appear with error detail, and it also includes a Send button to send this error detail to my logging server. You will开发者_StackOverflow中文版 see this feature in Firefox web browser.
Please help me to implement this feature in .NET. Thanks.
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException)
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
http://www.switchonthecode.com/tutorials/csharp-tutorial-dealing-with-unhandled-exceptions
精彩评论