Author: dna
Date: 2007-09-18 10:00:39 -0400 (Tue, 18 Sep 2007)
New Revision: 85969
Modified:
trunk/xsp/ChangeLog
trunk/xsp/src/server.cs
Log:
2007-09-18 Daniel Nauck <[EMAIL PROTECTED]>
* src/server.cs: add a UnhandledExceptionEventHandler
to handle an exception that is not handled by the application domain.
Modified: trunk/xsp/ChangeLog
===================================================================
--- trunk/xsp/ChangeLog 2007-09-18 13:06:03 UTC (rev 85968)
+++ trunk/xsp/ChangeLog 2007-09-18 14:00:39 UTC (rev 85969)
@@ -1,3 +1,8 @@
+2007-09-18 Daniel Nauck <[EMAIL PROTECTED]>
+
+ * src/server.cs: add a UnhandledExceptionEventHandler
+ to handle an exception that is not handled by the application domain.
+
2007-08-18 Josh Tauberer <[EMAIL PROTECTED]>
* src/Mono.WebServer/BaseRequestBroker.cs: Correct a mistake
Modified: trunk/xsp/src/server.cs
===================================================================
--- trunk/xsp/src/server.cs 2007-09-18 13:06:03 UTC (rev 85968)
+++ trunk/xsp/src/server.cs 2007-09-18 14:00:39 UTC (rev 85969)
@@ -237,8 +237,19 @@
}
}
+ public static void CurrentDomain_UnhandledException (object
sender, UnhandledExceptionEventArgs e)
+ {
+ Exception ex = (Exception)e.ExceptionObject;
+
+ Console.WriteLine ("Handling exception type {0}",
ex.GetType ().Name);
+ Console.WriteLine ("Message is {0}", ex.Message);
+ Console.WriteLine ("IsTerminating is set to {0}",
e.IsTerminating);
+ }
+
public static int Main (string [] args)
{
+ AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler (CurrentDomain_UnhandledException);
+
SecurityConfiguration security = new
SecurityConfiguration ();
bool nonstop = false;
bool verbose = false;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches