[Mono-bugs] [Bug 53340][Wis] New - cannot set Environment Vars, System.Collections.Specialized.StringDictionary incomplete?

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 26 Jan 2004 12:48:51 -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 eb@zombie.inka.de.

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

--- shadow/53340	2004-01-26 12:48:51.000000000 -0500
+++ shadow/53340.tmp.6596	2004-01-26 12:48:51.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 53340
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: eb@zombie.inka.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: cannot set Environment Vars, System.Collections.Specialized.StringDictionary incomplete?
+
+Hello,
+
+I tried to run an application from C#, set environment variables on start
+and control its state. Following the C# manual, it should end up in
+followinng code:
+
+
+using System;
+using System.Diagnostics;
+
+class TestIt {
+  public static void Main() {
+    Process p = new Process();
+    p.StartInfo.EnvironmentVariables.Add("foo", "bar");
+    p.Start("xterm");
+  }
+}
+
+However, Mono fails while trying to set the variables:
+
+Unhandled Exception: System.NotImplementedException: The requested feature
+is not yet implemented
+in <0x0002a> System.Diagnostics.ProcessStartInfo:get_EnvironmentVariables ()
+in <0x0003f> .TestIt:Main ()
+
+I assume that the class System.Collections.Specialized.StringDictionary
+(the one which contains the environment strings) is not complete.
+
+Thanks,
+Eduard.