More reorganizing of new SE. Added debug print of application exception.

This commit is contained in:
Tedd Hansen
2007-09-25 00:22:06 +00:00
parent 3ac43d0120
commit 8231ac72ec
5 changed files with 17 additions and 5 deletions

View File

@@ -40,6 +40,18 @@ namespace OpenSim.Grid.ScriptServer
{
// Application is starting
SE = new ScriptServerMain();
System.AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
}
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Console.WriteLine("");
Console.WriteLine("APPLICATION EXCEPTION DETECTED");
Console.WriteLine("");
Console.WriteLine("Application is terminating: " + e.IsTerminating.ToString());
Console.WriteLine("Exception:");
Console.WriteLine(e.ExceptionObject.ToString());
}
}