110,534
社区成员
发帖
与我相关
我的任务
分享
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
Application.Current.DispatcherUnhandledException+=..........
}
}
static void Main(params string[] parames)
{
Application.ThreadException += Application_ThreadException;
......
}
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
MessageBox.Show(e.Exception.Message);
}