[Mono-bugs] [Bug 27980][Wis] New - Passing a delegate with PInvoke
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
18 Jul 2002 21:40:59 -0000
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 manyoso@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=27980
--- shadow/27980 Thu Jul 18 17:40:59 2002
+++ shadow/27980.tmp.2427 Thu Jul 18 17:40:59 2002
@@ -0,0 +1,30 @@
+Bug#: 27980
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: manyoso@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Passing a delegate with PInvoke
+
+When passing multiple delegates with the same argument signature through
+PInvoke, only one method invocation list is called, the invocation list of
+the first delegate passed through pinvoke.
+
+I have a test case, but the code is on another computer :-( I'll update
+the bug when I can get to the test case, but for now you can reproduce
+this by defining a delegate and then creating _two_ instances of the
+delegate which point to two _different_ methods. Now, pass the delegates
+through Pinvoke (see tests/delegate4.cs) and also DynamicInvoke them.
+
+You will find that they outcome is different for the pinvoke'd methods and
+the dynamicinvoked methods.