[Mono-bugs] [Bug 37550][Maj] New - Process.GetCurrentProcess() always throws SystemException

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 3 Feb 2003 13:18:55 -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 karaznie@acn.waw.pl.

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

--- shadow/37550	Mon Feb  3 13:18:55 2003
+++ shadow/37550.tmp.13553	Mon Feb  3 13:18:55 2003
@@ -0,0 +1,69 @@
+Bug#: 37550
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Linux reven 2.4.20-686 #2 Sun Dec 1 13:36:19 EST 2002 i686 unknown unknown GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: karaznie@acn.waw.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Process.GetCurrentProcess() always throws  SystemException
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Process.GetCurrentProcess() always throws SystemException
+for mono cvs HEAD snapshot and mono-19 relerase. Test Case
+included below
+
+
+Steps to reproduce the problem:
+
+$cat Foo.cs
+
+using System;
+using System.Diagnostics;
+using Esymmetric.Pki.Asn1;
+
+public class Foo {
+
+
+    public static void Main( String[] args ) {
+           Process.GetCurrentProcess();
+    }
+
+}
+
+$mcs Foo.cs
+Compilation succeeded
+
+
+
+Actual Results:
+
+$mono Foo.exe
+
+unhandled Exception: System.SystemException: Can't find current processin
+<0x00067> 00 System.Diagnostics.Process:GetCurrentProcess ()
+in <0x0000b> 00 .Foo:Main (string[])
+
+Expected Results:
+
+
+How often does this happen? 
+
+always.
+
+Additional Information:
+
+affects mono cvs and mono-19. On same
+machine and OS earlier versions of 
+mono works fine.