[Mono-bugs] [Bug 53299][Nor] New - AppDomain ProcessExit doesn't work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jan 2004 12:16:10 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by matthijs@terwoord.nl.

http://bugzilla.ximian.com/show_bug.cgi?id=53299

--- shadow/53299	2004-01-24 12:16:10.000000000 -0500
+++ shadow/53299.tmp.9099	2004-01-24 12:16:10.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 53299
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: matthijs@terwoord.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomain ProcessExit doesn't work
+
+Description of Problem:
+
+  When assigning a method to AppDomain.ProcessExit the method doesn't get
+  fired.
+
+
+Steps to reproduce the problem:
+  Compile the following code:
+
+using System;
+using System.IO;
+
+public class Test
+{
+    public static void DoOnProcessExit(object sender, EventArgs e)
+    {
+	StreamWriter SW = new StreamWriter("output");
+	SW.WriteLine("Hello world " + Environment.TickCount);
+	SW.Flush();
+	SW.Close();
+    }
+    
+    public static void Main(string[] args)
+    {
+	AppDomain.CurrentDomain.ProcessExit += new EventHandler
+(DoOnProcessExit);
+	Console.WriteLine("Hello world");
+    }
+}
+
+Actual Results:
+
+  The file "output" doesn't get written
+
+Expected Results:
+
+  The file "output" should get written with "Hello world ######" in it 
+(##### is TickCount)
+
+How often does this happen? 
+
+  Always
+
+Additional Information: