[Mono-bugs] [Bug 77145][Nor] Changed - Process.GetCurrentProcess().Threads is null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 11 07:47:09 EDT 2007


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 joseph.ruskiewicz at inf.ethz.ch.

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

--- shadow/77145	2006-01-10 15:29:55.000000000 -0500
+++ shadow/77145.tmp.25214	2007-05-11 07:47:09.000000000 -0400
@@ -1,9 +1,9 @@
 Bug#: 77145
 Product: Mono: Class Libraries
-Version: unspecified
+Version: 1.2
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
@@ -107,6 +107,15 @@
 ------- Additional Comments From robertj at gmx.net  2006-01-10 15:29 -------
 System.Diagnostics.Process.Threads is not implemented
 and it always returns null.
 
 It should better return an empty ProcessThreadCollection.
 
+
+------- Additional Comments From joseph.ruskiewicz at inf.ethz.ch  2007-05-11 07:47 -------
+This problem is even simpler, the CurrentProcess returned is null.
+
+static void Main(string[] args)
+{
+Process p = Process.GetCurrentProcess ();
+ProcessThreadCollection c = p.Threads ();  // Null exception.
+}


More information about the mono-bugs mailing list