From 5d46fe225b71ca8135984e29a99c86241ee85c5a Mon Sep 17 00:00:00 2001 From: alcexhim Date: Thu, 16 Oct 2014 12:06:16 -0400 Subject: [PATCH] Only catch exceptions with CrashDialog if in release mode --- CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index cb37152e..94ba08e5 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -317,14 +317,18 @@ namespace UniversalEditor.UserInterface mvarCurrentEngine = engines[0]; } +#if !DEBUG try { +#endif mvarCurrentEngine.StartApplication(); +#if !DEBUG } catch (Exception ex) { mvarCurrentEngine.ShowCrashDialog(ex); } +#endif return true; }