[Mono-bugs] [Bug 77230][Nor] Changed - Marshalling C unions not working anymore

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 18 17:57:41 EST 2006


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 at gmail.com.

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

--- shadow/77230	2006-01-18 15:09:24.000000000 -0500
+++ shadow/77230.tmp.18560	2006-01-18 17:57:41.000000000 -0500
@@ -154,6 +154,15 @@
 Could it be that Marshal.StructureToPtr needs the same fix? I get an 
 
 ** ERROR **: Type Gimp.ParamData which has an [ExplicitLayout]
 attribute cannot have two fields with the same offset.
 
 If needed, I can provide a small testcase.
+
+------- Additional Comments From vargaz at gmail.com  2006-01-18 17:57 -------
+I think managed->native marshalling of such structures makes little
+sense. The runtime marshaller will copy the values of all the fields
+into the same memory address, so that address will contain the value
+last copied there, in the original example, d_int8. Is this useful for
+some purpose ?
+
+


More information about the mono-bugs mailing list