http://news.youkuaiyun.com/a/20101018/280624.html
关于.net异常机制:
http://bbs.chinaz.com/Club/thread-1369590-1-1.html
http://www.cnblogs.com/eaglet/archive/2009/02/17/1392191.html
http://developer.51cto.com/art/200912/173003.htm
http://blog.youkuaiyun.com/luminji/archive/2010/01/17/5197996.aspx
//处理未捕获的异常
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
//处理UI线程异常
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
//处理非UI线程异常
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/luminji/archive/2010/01/17/5197996.aspx
SetUnhandledExceptionFilter