[Mono-bugs] [Bug 77748][Maj] New - Process class StandardError and
StandardInput redirecting not functional
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Mar 9 14:49:33 EST 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 aksansai at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77748
--- shadow/77748 2006-03-09 14:49:33.000000000 -0500
+++ shadow/77748.tmp.2835 2006-03-09 14:49:33.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 77748
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details: Gentoo Linux 2006.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: aksansai at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Process class StandardError and StandardInput redirecting not functional
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+I am attempting to right an interface to an application by encapsulating
+stdout, stdin, and stderr.
+
+this.Process.StartInfo.RedirectStandardInput = true;
+this.Process.StartInfo.RedirectStandardError = true;
+this.Process.StartInfo.RedirectStandardOutput = true;
+
+I can capture stdout. However, an exception is thrown when attempting to
+read the StreamReader or StreamWriter associated with stderr and stdin.
+
+Unhandled Exception: System.InvalidOperationException: Standard error has
+not been redirected
+in [0x0001e]
+(at /var/tmp/portage/mono-1.1.13.2/work/mono-1.1.13.2/mcs/class/System/System.Diagnostics/Process.cs:484)
+System.Diagnostics.Process:get_StandardError ()
+in (wrapper remoting-invoke-with-check)
+System.Diagnostics.Process:get_StandardError ()
+in [0x00076] (at /home/myohe/Projects/Process/ProcessInterface.cs:49)
+ProcessInterface:.ctor ()
+in [0x00000] (at /home/myohe/Projects/Process/Main.cs:9) MainClass:Main
+(System.String[] args)
+
+Steps to reproduce the problem:
+1. see above description
+
+Expected Results:
+1. I should have seen whatever was being sent to stderr.
+
+How often does this happen?
+Everytime.
+
+Additional Information:
+
+$ mono -V
+Mono JIT compiler version 1.1.13.2, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+ TLS: __thread
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
More information about the mono-bugs
mailing list