[Mono-bugs] [Bug 78241][Maj] Changed - CreateThread failure/out of
wapi handles slots
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 2 11:39:43 EDT 2006
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 informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=78241
--- shadow/78241 2006-05-02 11:36:55.000000000 -0400
+++ shadow/78241.tmp.4289 2006-05-02 11:39:43.000000000 -0400
@@ -226,6 +226,59 @@
thread.Start();
}
}
}
+
+------- Additional Comments From informatique.internet at fiducial.fr 2006-05-02 11:39 -------
+Small test case with processes:
+// project created on 02/05/2006 at 15:49
+using System;
+using System.Threading;
+using System.Diagnostics;
+
+namespace TestProcess
+{
+ class MainClass
+ {
+
+ static string command_line="mono";
+
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ for (int i=0;i<5000;i++)
+ {
+ Process _process=new Process();
+ _process.StartInfo.FileName = command_line;
+ _process.StartInfo.Arguments="/usr/lib/xsp/1.0/xsp.exe";
+ _process.Start();
+ Console.WriteLine("Started "+i );
+ Thread.Sleep(10);
+ _process.Kill();
+ Console.WriteLine("Killed");
+ }
+
+
+ }
+ }
+}
+
+this crashes with :
+**
+(/home/hubert/Projects/TestUri/TestProcess/bin/Debug/TestProcess.exe:14804):
+WARNING **: CreateProcess: error creating process handle
+Started 3868
+
+Unhandled Exception: System.InvalidOperationException: The process
+already finished.
+in [0x0004a] (at
+/home/hubert/mono/mcs/class/System/System.Diagnostics/Process.cs:721)
+System.Diagnostics.Process:Close (Int32 signo)
+in [0x00002] (at
+/home/hubert/mono/mcs/class/System/System.Diagnostics/Process.cs:815)
+System.Diagnostics.Process:Kill ()
+in (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Kill ()
+in [0x0005b] (at /home/hubert/Projects/TestUri/TestProcess/Main.cs:25)
+TestProcess.MainClass:Main (System.String[] args)
+
More information about the mono-bugs
mailing list