[Mono-bugs] [Bug 79136][Wis] Changed - Marshal.SizeOf incorrect for struct with object/interrface members

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 2 11:51:47 EDT 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 joncham at gmail.com.

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

--- shadow/79136	2006-09-02 07:06:02.000000000 -0400
+++ shadow/79136.tmp.26434	2006-09-02 11:51:47.000000000 -0400
@@ -49,6 +49,12 @@
 
 ------- Additional Comments From vargaz at gmail.com  2006-09-02 07:06 -------
 Marshal.SizeOf should return the size of the structure when marshalled
 to native code. Since the object/interface members cannot be marshalled
 to native code, the 0 size seems ok.
 
+
+------- Additional Comments From joncham at gmail.com  2006-09-02 11:51 -------
+Well, there is the consistency with .Net issue. But more than that a
+user can marshal object (as a VARIANT or interface pointer) and
+interface types to unmanaged code for COM Interop. I just verified
+this with .Net. I'm working on a patch to support this.


More information about the mono-bugs mailing list