[Mono-bugs] [Bug 74909][Wis] Changed - C# - C Interop callbacks crash - but works with dotgnu
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 12 May 2005 07:08:13 -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 vargaz@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74909
--- shadow/74909 2005-05-11 10:33:03.000000000 -0400
+++ shadow/74909.tmp.3525 2005-05-12 07:08:13.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 74909
Product: Mono: Runtime
Version: 1.1
OS: unknown
OS Details: Windows Cygwin
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Wishlist
Component: interop
AssignedTo: mono-bugs@ximian.com
ReportedBy: abbottkirk@yahoo.com
QAContact: mono-bugs@ximian.com
@@ -75,6 +75,16 @@
I have a small zip file that is configured to run either
under MONO and DOTGNU that can be used to replicate the problem.
------- Additional Comments From vargaz@gmail.com 2005-05-11 10:33 -------
Please attach your testcase to the bug report.
+
+------- Additional Comments From vargaz@gmail.com 2005-05-12 07:08 -------
+delegates called from unmanaged code use the stdcall calling convention,
+so the unmanaged function pointers must use them too, i.e.
+
+void (JNICALL * evalF)(int n, double* pX, double* f, double* pDat,
+int* pIdat);
+
+void (JNICALL * evalG)(int n, double* pX, double* pG, double* pDat,
+int* pIdat);