[Mono-bugs] [Bug 78427][Wis] Changed -
MarshalAs(UnmanagedType.LPStruct) not working
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 17 22:45:40 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 jonathan.chambers at ansys.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78427
--- shadow/78427 2006-05-17 19:36:40.000000000 -0400
+++ shadow/78427.tmp.11043 2006-05-17 22:45:40.000000000 -0400
@@ -57,6 +57,16 @@
Should be fixed in SVN, but I don't have a windows mono installation
to test on right now, could you try it out ?
------- Additional Comments From jonathan.chambers at ansys.com 2006-05-17 19:36 -------
The sample code asserts in marshal.c at line 4838.
+
+------- Additional Comments From jonathan.chambers at ansys.com 2006-05-17 22:45 -------
+Perhaps we can just test whether the parameter is type System.Guid. I
+can't seem (with limited effort) to get MS .Net to accept any other
+struct besides System.Guid. It throws an error at runtime:
+
+Unhandled Exception:
+System.Runtime.InteropServices.MarshalDirectiveException: Can not
+marshal parameter #1: Invalid managed/unmanaged type combination (this
+value type must be paired with Struct).
More information about the mono-bugs
mailing list