[Mono-bugs] [Bug 77788][Min] Changed - Random NullPointerException
with array code
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Mar 16 12:13:42 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=77788
--- shadow/77788 2006-03-15 04:00:58.000000000 -0500
+++ shadow/77788.tmp.11145 2006-03-16 12:13:42.000000000 -0500
@@ -50,6 +50,19 @@
Created an attachment (id=16619)
Original source code for the application (Chrome syntax)
------- Additional Comments From ck at carlo-kok.com 2006-03-15 04:00 -------
Attached, note that this is in Chrome syntax.
+
+------- Additional Comments From vargaz at gmail.com 2006-03-16 12:13 -------
+The problem is this line in SBDes.pas:
+
+ [StructLayout(LayoutKind.Sequential , Pack := 1)]
+ TDESContext = public record
+
+The Pack=1 directive causes the mono runtime to align this structure
+to 1, causing the GC to lose track of object references in that
+structure. Since this works on MS.NET, we might need to change
+something, but not sure what.
+
+
More information about the mono-bugs
mailing list