[Mono-bugs] [Bug 29098][Nor] Changed - struct arrays not marshalling correctly in PInvoke

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Aug 2002 02:27:13 -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 hestilow@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=29098

--- shadow/29098	Mon Aug 19 04:51:10 2002
+++ shadow/29098.tmp.14201	Mon Aug 19 22:27:13 2002
@@ -26,6 +26,18 @@
 Created an attachment (id=2118)
 The test case (run "make test")
 
 
 ------- Additional Comments From dietmar@ximian.com  2002-08-19 04:51 -------
 I am unable to download that attachment - what format is it? 
+
+------- Additional Comments From hestilow@ximian.com  2002-08-19 22:27 -------
+Uhm, a tarball. You can grab it at
+http://bugzilla.ximian.com/show_bug.cgi?id=29098 .
+
+I am not certain, but I think the problem is in
+mono/metadata/marshal.c,  mono_marshal_get_native_wrapper. It seems
+that the array-handling code only marshals the individual array
+elements for the stringlist case. It should probably either emit a
+custom directive like it does for that (I am not sure if
+MONO_MARSHAL_CONV_* is custom or mapped to something in .NET, so I am
+just guessing), or emit an IL loop combined with emit_struct_conv somehow.