[Mono-bugs] [Bug 78742][Nor] Changed - Changing pen.DashStyle results in error from GdipException inside Graphics.DrawLine
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Jul 1 11:46:34 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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78742
--- shadow/78742 2006-07-01 00:57:06.000000000 -0400
+++ shadow/78742.tmp.11361 2006-07-01 11:46:34.000000000 -0400
@@ -4,20 +4,20 @@
OS: unknown
OS Details: Fedora Core 5
Status: NEW
Resolution:
Severity: Unknown
Priority: Normal
-Component: Sys.Drawing.
-AssignedTo: peter at novonyx.com
+Component: libgdiplus
+AssignedTo: sebastien at ximian.com
ReportedBy: roman.s at sbcglobal.net
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: System.Drawing.Graphics.DrawLine method throws System.Exception in System.Drawing.GDIPlus.CheckStatus
+Summary: Changing pen.DashStyle results in error from GdipException inside Graphics.DrawLine
Description of Problem:
System.Drawing.Graphics.DrawLine method throws System.Exception in
System.Drawing.GDIPlus.CheckStatus method. Simple test application
that works very well with MS .NET Framework crashes with Mono.
@@ -46,6 +46,43 @@
Additional Information:
------- Additional Comments From roman.s at sbcglobal.net 2006-07-01 00:54 -------
Created an attachment (id=17230)
test application
+
+------- Additional Comments From sebastien at ximian.com 2006-07-01 11:46 -------
+Thanks for your test case (*). Commenting this line:
+ pen.DashStyle = _dashStyles[rnd.Next(_dashStyles.Length - 1)];
+
+seems to "fix" the problem so I updated the bug description.
+
+[*] Please always state the format of your attachment as bugzilla lose
+this information.
+
+The bug is inside libgdiplus where GdipDrawLineI returns 1, which is
+"promoted" by System.Drawing (CheckStatus) to an Exception.
+
+ENTER: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipSetPenWidth (intptr,single)(0x85b2698,
+0.000000, )
+LEAVE: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipSetPenWidth (intptr,single)result=0
+ENTER: System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)(0, )
+LEAVE: System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)
+ENTER: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipSetPenDashStyle
+(intptr,System.Drawing.Drawing2D.DashStyle)(0x85b2698, 2, )
+LEAVE: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipSetPenDashStyle
+(intptr,System.Drawing.Drawing2D.DashStyle)result=0
+ENTER: System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)(0, )
+LEAVE: System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)
+ENTER: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawLineI
+(intptr,intptr,int,int,int,int)(0x856a868, 0x85b2698, 100, 20, 500, 20, )
+LEAVE: (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawLineI
+(intptr,intptr,int,int,int,int)result=1
+ENTER: System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)(1, )
+EXCEPTION handling: Exception
+
More information about the mono-bugs
mailing list