[Mono-bugs] [Bug 37996][Wis] New - System.Diagnostics.Process fails

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 13 Feb 2003 10:53:40 -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 alp@atoker.com.

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

--- shadow/37996	Thu Feb 13 10:53:40 2003
+++ shadow/37996.tmp.5372	Thu Feb 13 10:53:40 2003
@@ -0,0 +1,53 @@
+Bug#: 37996
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alp@atoker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Diagnostics.Process fails
+
+Using CVS HEAD, 20030213
+
+Actual behaviour:
+
+$ mono cat.exe
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was requiredin <0x00088> 00 .ProcessTest:Main
+(string[])
+
+Expected behaviour:
+
+$ mono cat.exe
+input text
+
+Test case:
+
+
+using System;
+using System.Diagnostics;
+                                                                            
+public class ProcessTest
+{
+        public static void Main (string[] args)
+        {
+                ProcessStartInfo psi = new ProcessStartInfo ("/bin/cat");
+                psi.UseShellExecute = false;
+                psi.RedirectStandardInput = true;
+                psi.RedirectStandardOutput = true;
+                Process p = Process.Start (psi);
+                string output;
+                p.StandardInput.WriteLine ("input text");
+                output = p.StandardOutput.ReadLine ();
+                Console.WriteLine (output);
+        }
+}