From 8deecc28086e188ad77676f8766960c3b71c9cac Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Thu, 4 Oct 2012 22:32:44 -0400 Subject: [PATCH] Additional diagnostic reporting --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index b04b0b8..d2f1547 100644 --- a/Program.cs +++ b/Program.cs @@ -20,12 +20,15 @@ namespace NBTExplorer public static void StaticInitFailure (Exception e) { Console.WriteLine("Static Initialization Failure:"); + + Exception original = e; while (e != null) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); e = e.InnerException; } + MessageBox.Show("Application failed during static initialization: " + original.Message); Application.Exit(); } }