[Mono-bugs] [Bug 77605][Min] New - GraphicsPath.AddPolygon should throw invalid arg exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 20 10:57: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 scottellington at comcast.net.


--- shadow/77605	2006-02-20 10:57:23.000000000 -0500
+++ shadow/77605.tmp.22768	2006-02-20 10:57:23.000000000 -0500
@@ -0,0 +1,28 @@
+Bug#: 77605
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: Sys.Drawing.
+AssignedTo: jordi at ximian.com                            
+ReportedBy: scottellington at comcast.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: GraphicsPath.AddPolygon should throw invalid arg exception
+GraphicsPath.AddPolygon throws an exception on Windows if you provide an
+array of points with a length of two like so:
+gp.AddPolygon (new PointF[] { new PointF(10,10), new PointF(20,20) } );
+The exception on Windows is:
+Unhandled Exception: System.ArgumentException: Parameter is not valid.
+   at System.Drawing.Drawing2D.GraphicsPath.AddPolygon(PointF[] points)
+   at DrawMe.Main(String[] argv)

More information about the mono-bugs mailing list