Better error handling

Some small trys to fix gstreamer debug not running in win xp
This commit is contained in:
Flamefire committed 2013-04-29 01:53:40 +02:00
1 parent 7a2450782c
commit cf0fd9dbed
4 files changed
+18 -15

No files matched your search

+4 -2
View File
@@ -202,9 +202,9 @@ namespace Vocaluxe
catch (Exception e)
{
MessageBox.Show("Error on start up: " + e.Message + e.StackTrace);
CLog.LogError("Error on start up: " + e.Message + e.StackTrace);
CLog.LogError("Error on start up: " + e);
_SplashScreen.Close();
_CloseProgram();
Environment.Exit(Environment.ExitCode);
}
Application.DoEvents();
@@ -229,6 +229,7 @@ namespace Vocaluxe
CWebcam.Close();
}
catch (Exception) {}
Environment.Exit(Environment.ExitCode);
}
[HandleProcessCorruptedStateExceptions]
@@ -243,6 +244,7 @@ namespace Vocaluxe
catch {}
MessageBox.Show("Unhandled exception: " + e.Message + stackTrace);
CLog.LogError("Unhandled exception: " + e.Message + stackTrace);
_CloseProgram();
}
private static Assembly _AssemblyResolver(Object sender, ResolveEventArgs args)