[Mono-bugs] [Bug 76455][Min] New - Process .Exited event doesnt ever get thrown

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 16 17:22:37 EDT 2005


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 carlos at applianz.com.

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

--- shadow/76455	2005-10-16 17:22:37.000000000 -0400
+++ shadow/76455.tmp.9390	2005-10-16 17:22:37.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 76455
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Gentoo 64bit
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: carlos at applianz.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Process .Exited event doesnt ever get thrown
+
+After telling the process to enable event raising and registering for the
+exited event, the Exited event just never gets thrown! 
+
+using System;
+using System.Diagnostics;
+
+namespace ProcTest
+{
+	/// <summary>
+	/// Summary description for Class1.
+	/// </summary>
+	class Class1
+	{
+		/// <summary>
+		/// The main entry point for the application.
+		/// </summary>
+		[STAThread]
+		static void Main(string[] args)
+		{
+			ProcessStartInfo info = new ProcessStartInfo("xcalc");
+			Process p = new Process();
+			p.StartInfo = info;
+			p.EnableRaisingEvents = true;
+			p.Exited +=new EventHandler(p_Exited);
+			p.Start();
+			Console.WriteLine("Hit enter to exit");
+			Console.ReadLine();
+		}
+
+		private static void p_Exited(object sender, EventArgs e)
+		{
+			Console.WriteLine("Exited");
+
+		}
+	}
+}


More information about the mono-bugs mailing list