开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜