[Mono-bugs] [Bug 76670][Nor] Changed - Kill() method of Process instance may not be working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 11 11:58:43 EST 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 dick at ximian.com.


--- shadow/76670	2005-11-11 04:54:52.000000000 -0500
+++ shadow/76670.tmp.12257	2005-11-11 11:58:43.000000000 -0500
@@ -82,6 +82,19 @@
 csc TryProcess.cs
 mcs TryProcess.cs /r:System.Windows.Forms /r:System.Drawing
+------- Additional Comments From dick at ximian.com  2005-11-11 11:58 -------
+We have a problem on windows when ProcessStartInfo.UseShellExecute is
+left set to true.  The process is executed via cmd.exe, but the
+process ID and handle returned are of the cmd.exe not the subprocess
+so Kill gets the wrong one.  This works as it should on Linux, btw.
+A workaround is to set UseShellExecute=false.
+Looking at the output from the windows task manager it seems that the
+ms runtime doesn't use cmd.exe even when UseShellExecute == true.  If
+anyone has any hints about what to use instead here, I'd like to hear

More information about the mono-bugs mailing list