[Mono-bugs] [Bug 78241][Nor] Changed - CreateThread failure/out of
wapi handles slots
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Apr 29 15:34:56 EDT 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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=78241
--- shadow/78241 2006-04-29 15:22:24.000000000 -0400
+++ shadow/78241.tmp.31766 2006-04-29 15:34:56.000000000 -0400
@@ -108,6 +108,36 @@
}
}
It can be reproduced with SVN head too.
+
+------- Additional Comments From robertj at gmx.net 2006-04-29 15:34 -------
+Now the best test case than ever ;-)
+
+The thread handles are leaked if EndInvoke () of an async
+delegate is not called, like in QueueUserWorkItem:
+
+using System;
+using System.Runtime.Remoting.Messaging;
+
+class T
+{
+ delegate void MethodDelegate ();
+
+ static void Main ()
+ {
+ MethodDelegate d = new MethodDelegate (Method);
+ while (true) {
+ IAsyncResult ar = d.BeginInvoke (null, null);
+ // d.EndInvoke (ar);
+ System.Threading.Thread.Sleep (1);
+ }
+ }
+
+ static void Method ()
+ {
+ }
+
+}
+
More information about the mono-bugs
mailing list