[Mono-bugs] [Bug 78500][Wis] New - BeginInvoke doesnot call async
method
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 24 04:16:10 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 office at schwaiger.at.
http://bugzilla.ximian.com/show_bug.cgi?id=78500
--- shadow/78500 2006-05-24 04:16:10.000000000 -0400
+++ shadow/78500.tmp.8941 2006-05-24 04:16:10.000000000 -0400
@@ -0,0 +1,79 @@
+Bug#: 78500
+Product: Mono: Runtime
+Version: 1.0
+OS: other
+OS Details: Linux 2.6.15 on armv4tl
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: office at schwaiger.at
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: BeginInvoke doesnot call async method
+
+BusyBox v1.1.0 (2006.03.13-14:12+0000) multi-call binary
+
+Mono JIT compiler version 1.1.14, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV: normal
+ Disabled: none
+Description of Problem:
+
+
+Steps to reproduce the problem:
+
+1. Build console application with following code.
+
+using System;
+
+namespace Project.X
+{
+ class Program
+ {
+ private delegate void StringDelegateHandler(string
+testString);
+
+ [STAThread]
+ static void Main(string[] args)
+ {
+ StringDelegateHandler stringDelegateHandler = new
+StringDelegateHandler(AsyncMethod);
+
+ IAsyncResult ar =
+stringDelegateHandler.BeginInvoke("AsyncMethod called.", null,
+stringDelegateHandler);
+
+ ar.AsyncWaitHandle.WaitOne();
+
+ Console.WriteLine("Press ENTER to exit ...");
+ Console.ReadLine();
+ }
+
+ public static void AsyncMethod(string testString)
+ {
+ Console.WriteLine(testString);
+ }
+ }
+}
+
+2. Run program
+
+Actual Results:
+AsyncMethod is never called, Program waits forever in WaitOne().
+
+Expected Results:
+AsyncMethod should be called.
+
+
+How often does this happen?
+Always
+
+Additional Information:
+The CompletionPort Threads count in ThreadPool is 0.
More information about the mono-bugs
mailing list