[Mono-bugs] [Bug 42260][Nor] New - StructLayout Size and inheritance

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 2 May 2003 12:27:17 -0400 (EDT)

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 jlaban@wanadoo.fr.


--- shadow/42260	Fri May  2 12:27:17 2003
+++ shadow/42260.tmp.3269	Fri May  2 12:27:17 2003
@@ -0,0 +1,33 @@
+Bug#: 42260
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jlaban@wanadoo.Fr               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: StructLayout Size and inheritance
+Given the following C# code :
+[StructLayout(LayoutKind.Sequential, Size=32)]
+public class A {
+   int a;
+[StructLayout(LayoutKind.Sequential, Size=32)]
+public class B {
+   int b;
+The reported size of the type B is reported by Marshal.SizeOf is incorrect 
+and the memory mapping of the marsalled data after a call to 
+Marshal.StructureToPtr for this type is incorrect.