lixiaojun
2024-11-08 b4a3cd00731396b2a032e19c1ef968316f051709
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);