[Mono-bugs] [Bug 76063][Nor] New - runtime fails with a little bit
complex function pointer passed during pinvoke
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Sep 11 16:34:19 EDT 2005
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 nazgul at omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=76063
--- shadow/76063 2005-09-11 16:34:19.000000000 -0400
+++ shadow/76063.tmp.3863 2005-09-11 16:34:19.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 76063
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details: mono 1.1.9
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: interop
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: nazgul at omega.pl
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: runtime fails with a little bit complex function pointer passed during pinvoke
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+runtime fails for
+
+wrap.c:
+#include <stdio.h>
+
+void RegisterCompletion (char** func (const char*, int, int)) {
+}
+
+t.cs
+using System.Runtime.InteropServices;
+
+delegate string[] Func (string a, int b, int c);
+
+class M {
+ [DllImport ("wrap")]
+ static extern void RegisterCompletion (Func x);
+
+ static string[] f (string a, int b, int c) {
+ return null;
+ }
+
+ static void Main () {
+ RegisterCompletion (new Func (f));
+ }
+}
+
+
+Actual Results:
+** (t.exe:12584): WARNING **: return type 0x1d unknown
+
+** ERROR **: file marshal.c: line 6474 (mono_marshal_get_managed_wrapper):
+should not be reached
+
+
+Expected Results:
+clear run
+
+How often does this happen?
+always
+
+Additional Information:
+it works fine on MS.NET
More information about the mono-bugs
mailing list