[Mono-bugs] [Bug 76717][Min] New - Marshal.SizeOf asserts on a packed struct

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 15 18:41:40 EST 2005

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 billmedland at mercuryspeed.com.


--- shadow/76717	2005-11-15 18:41:40.000000000 -0500
+++ shadow/76717.tmp.13006	2005-11-15 18:41:40.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 76717
+Product: Mono: Runtime
+Version: 1.1
+OS Details: RHEL4
+Status: NEW   
+Priority: Minor
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: billmedland at mercuryspeed.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Marshal.SizeOf asserts on a packed struct
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Marshal.SizeOf cannot handle packed structures
+Steps to reproduce the problem:
+1. Compile the attached test.cs which marshals a 2-byte-packed struct
+2. Run it
+Actual Results:
+** ERROR **: file object.c: line 503 (compute_class_bitmap): assertion
+failed: ((field->offset % sizeof(gpointer)) == 0)
+Expected Results:
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list