using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace WpfApplication2
{
/// /// App.xaml 的交互逻辑
///
public partial class App : Application
{
//UI线程异常
static void Application_ThreadException(object sender System.Threading.ThreadExceptionEventArgs e)
{
MessageBox.Show(“UI界面异常如下:“ + e.Exception);
}
//多线程异常
static void CurrentDomain_UnhandledException(object sender UnhandledExceptionEventArgs e)
{
MessageBox.Show(“多线程异常:“ + (Exception)e.Exceptionobject);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 201