[Mono-bugs] [Bug 29548][Nor] Changed - Delegate/Callback defined in native code structure
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
25 Oct 2002 04:12:50 -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 neilcawse@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=29548
--- shadow/29548 Thu Sep 12 06:51:25 2002
+++ shadow/29548.tmp.31770 Fri Oct 25 00:12:50 2002
@@ -1,22 +1,21 @@
Bug#: 29548
Product: Mono/Runtime
Version: unspecified
OS: unknown
OS Details: Windows XP, .NET Framework SDK, Mono from CVS (08/27/02)
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: jsohn@columbus.rr.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: Delegate/Callback defined in native code structure
Description of Problem:
Delegate/Callbacks functions to native code do not appear to register
properly when contained inside of a structure. I noticed the GTK# project
@@ -206,6 +205,28 @@
of the WNDCLASS are cleared or invalid when received in the
RegisterClass function.
------- Additional Comments From dietmar@ximian.com 2002-09-12 06:51 -------
I just commited a fix to marshall delegates inside structures.
+
+------- Additional Comments From neilcawse@hotmail.com 2002-10-25 00:12 -------
+I am reopening this Bug - I emailed Paolo - I will now email Dietmar.
+On 12 Aug a bug fix was done to marshal.c to emit_str_to_ptr_conv –
+adding in support for MONO_MARSHAL_CONV_DEL_FTN (delegate).
+
+Im trying to implement a pinvoke callback in a struct in windows and I
+get mint and mono failing
+
+(in the case of mint: **ERROR** file marshal.c : line 624
+(emit_ptr_to_str_conv): should not be reached. Also – WARNING **
+marshaling conversion 21 not implemented.
+
+I looked this up and it is MONO_MARSHAL_CONV_DEL_FTN.
+
+Looking at the code Emit_ptr_to_str_conv doesn’t have support for
+MONO_MARSHAL_CONV_DEL_FTN.
+
+The test given in this bug hasnt been fixed under windows, it gives
+the same error I am having.
+
+Dietmar - can you help? Afraid its beyond me!