cloudflight
2024-12-24 97a43bf839f59cdda1641d61706e6e71a0c5e172
Desktop/HStation.Desktop.Xhs.Core/Program.cs
@@ -29,11 +29,11 @@
                System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-Hans");
                //处理未捕获的异常
                //Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
                Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
                //处理UI线程异常
                //Application.ThreadException += Application_ThreadException;
                Application.ThreadException += Application_ThreadException;
                //处理非UI线程异常
                //AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
                AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);