[Mono-bugs] [Bug 59299][Nor] New - Mono assert when using async delegates
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 29 May 2004 15:12:50 -0400 (EDT)
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 tum@veridicus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59299
--- shadow/59299 2004-05-29 15:12:50.000000000 -0400
+++ shadow/59299.tmp.28808 2004-05-29 15:12:50.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 59299
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tum@veridicus.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono assert when using async delegates
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Mono has an assert on line 2837 of object.c when using async delegates.
+
+Steps to reproduce the problem:
+
+Run the following program:
+
+using System;
+using System.Threading;
+
+public class Test
+{
+ delegate void M(ref object x, ref object y);
+
+ public static void Foo(ref object x, ref object y)
+ {
+ x = 20;
+ y = 30;
+ }
+
+ public static void Main()
+ {
+ IAsyncResult ar;
+ M m = new M(Foo);
+ object x1 = 10, x2 = 10;
+
+ ar = m.BeginInvoke(ref x1, ref x2, null, null);
+
+ m.EndInvoke(ref x2, ref x2, ar);
+
+ Console.WriteLine("x={0}, y={1}", x1, x2);
+ }
+}