aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptServer/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/ScriptServer/Application.cs')
-rw-r--r--OpenSim/Grid/ScriptServer/Application.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Grid/ScriptServer/Application.cs b/OpenSim/Grid/ScriptServer/Application.cs
index e7a6590..780f037 100644
--- a/OpenSim/Grid/ScriptServer/Application.cs
+++ b/OpenSim/Grid/ScriptServer/Application.cs
@@ -40,6 +40,18 @@ namespace OpenSim.Grid.ScriptServer
40 { 40 {
41 // Application is starting 41 // Application is starting
42 SE = new ScriptServerMain(); 42 SE = new ScriptServerMain();
43
44 System.AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
45 }
46
47 static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
48 {
49 Console.WriteLine("");
50 Console.WriteLine("APPLICATION EXCEPTION DETECTED");
51 Console.WriteLine("");
52 Console.WriteLine("Application is terminating: " + e.IsTerminating.ToString());
53 Console.WriteLine("Exception:");
54 Console.WriteLine(e.ExceptionObject.ToString());
43 } 55 }
44 56
45 } 57 }