[Mono-bugs] [Bug 25100] Changed - Arguments off-by-one in delegate calls from a pinvoked method

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
25 May 2002 20:48:11 -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 miguel@ximian.com.


--- shadow/25100	Tue May 21 20:29:10 2002
+++ shadow/25100.tmp.29213	Sat May 25 16:48:11 2002
@@ -1,13 +1,13 @@
 Bug#: 25100
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: joe@ximian.com               
 QAContact: mono-bugs@ximian.com
@@ -43,6 +43,16 @@
 C# file which does the PInvoking
 ------- Additional Comments From joe@ximian.com  2002-05-21 20:29 -------
 Actually, it seems to work if I build on Windows and run on Linux, so
 I'm guessing this is a compiler bug and changing as such.
+------- Additional Comments From miguel@ximian.com  2002-05-25 16:48 -------
+Thanks for the bug report.  This bug was interesting, because the
+problem was that MCS assumed that if we were an instance method, we
+would be calling an instance delegate.  
+In reality, we should check if the function that is being created is
+static or not.
+The bug is now fixed