[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:36:23 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 kornelpal at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77523
--- shadow/77523 2006-02-10 12:01:49.000000000 -0500
+++ shadow/77523.tmp.31326 2006-02-10 12:36:23.000000000 -0500
@@ -88,6 +88,14 @@
------- 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).
+
+------- Additional Comments From kornelpal at hotmail.com 2006-02-10 12:36 -------
+You are right, I didn't try PtrToStructure, I just referenced it
+because of the summary, but actually I shouldn't.:)
+
+I only checked the ToLogFont issue. And I summarized the mistakes of
+Dr. GUI as he belived that the problem is that a structure is used
+but the problem is that he did not take care of boxing.
More information about the mono-bugs
mailing list