[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 10:11:10 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 09:50:33.000000000 -0500
+++ shadow/77523.tmp.25709	2006-02-10 10:11:09.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 77523
 Product: Mono: Class Libraries
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: jonathan.chambers at ansys.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -40,6 +40,14 @@
 Additional Information:
 ------- Additional Comments From jonathan.chambers at ansys.com  2006-02-10 09:50 -------
 Created an attachment (id=16472)
+------- Additional Comments From jonathan.chambers at ansys.com  2006-02-10 10:11 -------
+Note, once this is fixed, System.Drawing.Font.ToHfont() is going to
+throw this exception on Windows (bug was found running mono SD under
+MS.Net runtime). System.Drawing.Font.ToLogFont (object logFont,
+Graphics graphics) either needs to use the other PtrToStructure 
+overload, or the LOGFONTW/LOGFONTA structs need to be changed to
+formatted classes (I believe the former is the correct solution).

More information about the mono-bugs mailing list