mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 19:20:27 +12:00
Merge pull request #4298 from pourmand1376/catch_all_exceptions
catching all Exceptions!
This commit is contained in:
commit
9e04fcf4bc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue