From 6f9fcfc03a89df61eb55148f5d6025e10c78b8d1 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Wed, 17 Jan 2018 18:08:44 +0100 Subject: [PATCH] Update UnhandledExceptionHandler --- Vocaluxe/Program.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Vocaluxe/Program.cs b/Vocaluxe/Program.cs index 94cc8d18..36c12851 100644 --- a/Vocaluxe/Program.cs +++ b/Vocaluxe/Program.cs @@ -453,16 +453,7 @@ namespace Vocaluxe [HandleProcessCorruptedStateExceptions] private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args) { - var e = (Exception)args.ExceptionObject; - string stackTrace = ""; - try - { - stackTrace = e.StackTrace; - } - catch {} - MessageBox.Show("Unhandled exception: " + e.Message + stackTrace); - CLog.Error("Unhandled exception: " + e.Message + stackTrace); - _CloseProgram(); + CLog.Fatal((Exception)args.ExceptionObject, "Unhandled exception: {ExceptionMessage}", CLog.Params(e.Message)); } #endif