This commit is contained in:
xyy
2026-05-08 15:45:19 +08:00
parent d172860c8b
commit 50395576fe

View File

@@ -18,7 +18,7 @@ namespace ShanghaiEnvironmentalTechnology
// 捕获任务线程异常 // 捕获任务线程异常
System.Threading.Tasks.TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; System.Threading.Tasks.TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException;
} }
private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{ {
LogError(e.Exception, "UI线程异常"); LogError(e.Exception, "UI线程异常");