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 [EMAIL PROTECTED]

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 [EMAIL PROTECTED]  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 ()
+        {
+        }
+
+}
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to