mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
[Program] - Only catch Application/AppDomain execptions if not in DEBUG Config-mode.
This commit is contained in:
parent
294b3f646e
commit
67e868f55f
@ -14,6 +14,8 @@ namespace Nikse.SubtitleEdit
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
|
||||
#if !DEBUG
|
||||
// Add the event handler for handling UI thread exceptions to the event.
|
||||
Application.ThreadException += Application_ThreadException;
|
||||
|
||||
@ -21,7 +23,8 @@ namespace Nikse.SubtitleEdit
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||
|
||||
// Add the event handler for handling non-UI thread exceptions to the event.
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
#endif
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
Loading…
Reference in New Issue
Block a user