[Mono-bugs] [Bug 61515][Wis] Changed - NullReference exception in WaitOne()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Jul 2004 16:14:31 -0400 (EDT)


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 dick@ximian.com.

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

--- shadow/61515	2004-07-14 01:02:12.000000000 -0400
+++ shadow/61515.tmp.13767	2004-07-14 16:14:31.000000000 -0400
@@ -64,6 +64,29 @@
             _exceptionFactoryMutex.ReleaseMutex();
         }
 
 Cheers,
 
 Michi.
+
+------- Additional Comments From dick@ximian.com  2004-07-14 16:14 -------
+I can't reproduce this.  You example was incomplete, so I used:
+
+using System.Threading;
+
+public class foo {
+        private static Mutex mut = new Mutex();
+
+        private static void doit()
+        {
+                mut.WaitOne();
+                mut.ReleaseMutex();
+        }
+
+        public static void Main() {
+                for (int i = 0; i < 1000000; i++) {
+                        doit();
+                }
+        }
+}
+
+