[Mono-bugs] [Bug 79612][Wis] New - Matrix (System.Drawing.Drawing2D.Matrix) constructor fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Oct 7 01:12:29 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 s at ourada.org.

http://bugzilla.ximian.com/show_bug.cgi?id=79612

--- shadow/79612	2006-10-07 01:12:29.000000000 -0400
+++ shadow/79612.tmp.27507	2006-10-07 01:12:29.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 79612
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: libgdiplus
+AssignedTo: peter at novonyx.com                            
+ReportedBy: s at ourada.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Matrix (System.Drawing.Drawing2D.Matrix) constructor fails
+
+Description of Problem:
+The Matrix constructor Matrix(RectangleF, PointF[]) fails with the
+following exception:
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A null
+reference or invalid value was found.
+in <0x00084> System.Drawing.GDIPlus:CheckStatus (Status status)
+in <0x0004e> System.Drawing.Drawing2D.Matrix:.ctor (RectangleF rect,
+System.Drawing.PointF[] pa)
+in (wrapper remoting-invoke-with-check)
+System.Drawing.Drawing2D.Matrix:.ctor
+(System.Drawing.RectangleF,System.Drawing.PointF[])
+in <0x0017f> MatrixBug.Program:Main (System.String[] args)
+
+On this line of code:
+Matrix m = new Matrix(new RectangleF(0.0f, 0.0f, 100.0f, 100.0f), new
+PointF[] { new PointF(10.0f, 10.0f), new PointF(20.0f, 10.0f), new
+PointF(10.0f, 20.0f) });
+
+This constructor works fine under MS.Net 2.0.
+
+Steps to reproduce the problem:
+Compile the above line. A small test program is attached, as well.
+
+Actual Results:
+Exception.
+
+Expected Results:
+Correctly constructed Matrix.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+I'm not an expert in Mono or GDI Plus, but it looks like the Mono
+constructor is attempting to pass the rectangle and points directly to GDI
+Plus, but it looks to me like the .Net class and the GDI Plus class have
+constructors that look similar but actually do different things. Even given
+that, I'm not sure why this exception would arise, though.


More information about the mono-bugs mailing list