[Mono-bugs] [Bug 77523][Nor] Changed - PtrToStructure(IntPtr, object) should throw exception if object is not formatted class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 10 12:01:49 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 jonathan.chambers at ansys.com.


--- shadow/77523	2006-02-10 11:51:13.000000000 -0500
+++ shadow/77523.tmp.30865	2006-02-10 12:01:49.000000000 -0500
@@ -81,6 +81,13 @@
 value type). If you are saying something else, sorry.
 We are currently using the overload that only allows for formatted
 classes in SD. This actually seems to be correct as the MS ToLogFont
 only worked for me when I used a formatted class to describe the
 LOGFONT structure, not when I used a managed struct.
+------- Additional Comments From jonathan.chambers at ansys.com  2006-02-10 12:01 -------
+Kornel, I think I understand now. The code you have above does work
+with the ToLogFont method. However, the one PtrToStructure overload
+does still throw an exception if passed a value type (boxed). Two
+seperate issues I believe (our handling to ToLogFont and
+PtrToStructure issue).

More information about the mono-bugs mailing list