Bug 321234 (MONO78500) - [ARM] BeginInvoke doesnot call async method
Summary: [ARM] BeginInvoke doesnot call async method
Status: RESOLVED FIXED
Alias: MONO78500
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-24 11:16 UTC by guenter.schwaiger
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Source code (613 bytes, text/plain)
2006-05-24 11:20 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:59:56 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".