private CurrentDomain_UnhandledException ( object sender, |
||
sender | object | |
e | ||
return | void |
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Exception excep = e.ExceptionObject as Exception;
if (excep != null)
{
_log.Fatal(excep);
}
MessageBox.Show("系统发生未预料异常,将退出");
}