Bugzilla – Bug 321234
[ARM] BeginInvoke doesnot call async method
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by office@schwaiger.at 2006-05-24 04:16:09 MST ---- 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. ---- Additional Comments From office@schwaiger.at 2006-05-24 04:20:03 MST ---- Created an attachment (id=169908) Source code ---- Additional Comments From lupus@ximian.com 2006-11-27 07:39:34 MST ---- Fixed in svn. Thanks. Imported an attachment (id=169908) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Linux 2.6.15 on armv4tl</cf_op_sys_details> Unknown operating system other. Setting to default OS "Other".