aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptServer/Application.cs
diff options
context:
space:
mode:
authorTedd Hansen2007-09-25 00:22:06 +0000
committerTedd Hansen2007-09-25 00:22:06 +0000
commit8231ac72eca0991d0a0a2262d37a97eb9ad23bd4 (patch)
tree288450794c2524af84aa3c626f40e6f02c266b51 /OpenSim/Grid/ScriptServer/Application.cs
parent* Removed some more fields from CommunicationsLocal (diff)
downloadopensim-SC-8231ac72eca0991d0a0a2262d37a97eb9ad23bd4.zip
opensim-SC-8231ac72eca0991d0a0a2262d37a97eb9ad23bd4.tar.gz
opensim-SC-8231ac72eca0991d0a0a2262d37a97eb9ad23bd4.tar.bz2
opensim-SC-8231ac72eca0991d0a0a2262d37a97eb9ad23bd4.tar.xz
More reorganizing of new SE. Added debug print of application exception.
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 }