diff options
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r-- | win/C#/Program.cs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index 919543c48..bf90c2da7 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -13,6 +13,7 @@ namespace Handbrake using HandBrake.ApplicationServices;
using HandBrake.ApplicationServices.Services;
+ using HandBrake.Framework.Views;
using Handbrake.Properties;
@@ -121,11 +122,21 @@ namespace Handbrake /// <param name="e">Unhandled Exception EventArgs </param>
private static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
- MessageBox.Show(
- "An Unknown Error has occured. \n\n Exception:" + e.ExceptionObject,
- "Unhandled Exception",
- MessageBoxButtons.OK,
- MessageBoxIcon.Error);
+ try
+ {
+ ExceptionWindow window = new ExceptionWindow();
+ window.Setup("An Unknown Error has occured.", e.ExceptionObject.ToString());
+ window.ShowDialog();
+ }
+ catch (Exception)
+ {
+ MessageBox.Show(
+ "An Unknown Error has occured. \n\n Exception:" + e.ExceptionObject,
+ "Unhandled Exception",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Error);
+ }
+
}
public static int InstanceId;
|