https://bugzilla.novell.com/show_bug.cgi?id=655674
https://bugzilla.novell.com/show_bug.cgi?id=655674#c2 Zoltan Varga <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Zoltan Varga <[email protected]> 2010-12-01 13:16:06 UTC --- On net 4.0, I get: Unhandled Exception: System.ArgumentException: The specified structure must be blittable or have layout information. Parameter name: structure at System.Runtime.InteropServices.Marshal.StructureToPtr(Object structure, IntPtr ptr, Boolean fDeleteOld) at Program.Main(String[] args) for this testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; using System.Runtime.InteropServices; [StructLayout (LayoutKind.Auto)] public class SimpleClass { } class Program { static void Main (string[] args) { SimpleClass c = new SimpleClass (); IntPtr p = Marshal.AllocHGlobal (1024); Marshal.StructureToPtr (c, p, false); } } >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
