catching all Exceptions!

This commit is contained in:
Amir Pourmand 2019-07-28 12:43:45 +04:30 committed by AmirPourmand
parent 99c0077119
commit b79e38dcf1

View file

@ -237,6 +237,7 @@ private static void Main(string[] args)
#if !DEBUG // Allow Visual Studio to break on exceptions in Debug builds.
Application.ThreadException += Application_ThreadException;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
#endif
StartTimer = Stopwatch.StartNew(); // For be able to show startup time