[Mono-bugs] [Bug 80316][Maj] New - Graphics.TranslateTransform generating exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Dec 19 12:25:04 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 bcarson at asgoth.com.

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

--- shadow/80316	2006-12-19 12:25:04.000000000 -0500
+++ shadow/80316.tmp.15076	2006-12-19 12:25:04.000000000 -0500
@@ -0,0 +1,91 @@
+Bug#: 80316
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: XP, SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bcarson at asgoth.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Graphics.TranslateTransform generating exception
+
+Description of Problem:
+The attached sample executes correctly in .NET, but generates the 
+following stack trace in Mono:
+
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A null 
+reference or invalid value was found.
+  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0006d] in 
+C:\cygwin\tmp\scratch\mono-1.2.1\mcs\class\System.Drawing\Syste
+m.Drawing\gdipFunctions.cs:189
+  at System.Drawing.Graphics.TranslateTransform (Single dx, Single dy, 
+MatrixOrder order) [0x0000f] in C:\cygwin\tmp\scratch\mono-1.
+2.1\mcs\class\System.Drawing\System.Drawing\Graphics.cs:2246
+  at (wrapper remoting-invoke-with-check) 
+System.Drawing.Graphics:TranslateTransform 
+(single,single,System.Drawing.Drawing2D.MatrixO
+rder)
+  at RoundedButton.RoundedButton.PaintParentBackground 
+(System.Windows.Forms.PaintEventArgs e) [0x00000]
+  at RoundedButton.RoundedButton.OnPaint 
+(System.Windows.Forms.PaintEventArgs pe) [0x00000]
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& 
+m) [0x00226] in C:\cygwin\tmp\scratch\mono-1.2.1\mcs\class\
+Managed.Windows.Forms\System.Windows.Forms\Control.cs:4024
+  at System.Windows.Forms.ButtonBase.WndProc 
+(System.Windows.Forms.Message& m) [0x00055] in C:\cygwin\tmp\scratch\mono-
+1.2.1\mcs\cla
+ss\Managed.Windows.Forms\System.Windows.Forms\ButtonBase.cs:524
+  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& 
+m) [0x00000] in C:\cygwin\tmp\scratch\mono-1.2.1\mcs\class\M
+anaged.Windows.Forms\System.Windows.Forms\Button.cs:113
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc 
+(System.Windows.Forms.Message& m) [0x00000] in C:\cygwin\tmp\scratch\m
+ono-1.2.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:182
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, 
+IntPtr wParam, IntPtr lParam) [0x0006b] in C:\cygwin\tmp\scrat
+ch\mono-1.2.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\NativeWindow.cs:159
+  at (wrapper native-to-managed) 
+System.Windows.Forms.NativeWindow:WndProc 
+(intptr,System.Windows.Forms.Msg,intptr,intptr)
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native) 
+System.Windows.Forms.XplatUIWin32:Win32DispatchMessage 
+(System.Windows.Forms.MSG&)
+  at System.Windows.Forms.XplatUIWin32.DispatchMessage 
+(System.Windows.Forms.MSG& msg) [0x00000] in C:\cygwin\tmp\scratch\mono-
+1.2.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\XplatUIWin32.cs:1505
+  at System.Windows.Forms.XplatUI.DispatchMessage 
+(System.Windows.Forms.MSG& msg) [0x00000] in C:\cygwin\tmp\scratch\mono-
+1.2.1\mcs\
+class\Managed.Windows.Forms\System.Windows.Forms\XplatUI.cs:431
+  at System.Windows.Forms.Application.DispatchMessage 
+(System.Windows.Forms.MSG& msg) [0x00000] in C:\cygwin\tmp\scratch\mono-
+1.2.1\
+mcs\class\Managed.Windows.Forms\System.Windows.Forms\Application.cs:447
+
+------------------------------------
+Steps to reproduce the problem:
+1. run the attached sample with: mono --debug RoundedButton.exe
+
+Actual Results:
+Stack Track
+
+Expected Results:
+Form should display with a "custom" Button that has rounded ends
+
+How often does this happen? 
+The behavior is consistent.
+
+Additional Information:
+<see attached ZIP file>


More information about the mono-bugs mailing list