[Mono-bugs] [Bug 77476][Nor] New - PictureBox calls Width on uninitialized image.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 5 13:28:54 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 miguel at ximian.com.

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

--- shadow/77476	2006-02-05 13:28:54.000000000 -0500
+++ shadow/77476.tmp.20129	2006-02-05 13:28:54.000000000 -0500
@@ -0,0 +1,71 @@
+Bug#: 77476
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PictureBox calls Width on uninitialized image.
+
+Try running pdn:
+
+cd pdn/src
+make run
+
+You will get the following stack trace, the problem is that nativeObject is
+zero in Image.cs:
+
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A null
+reference or invalid value was found.
+in [0x00077] (at
+/home/cvs/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:175)
+System.Drawing.GDIPlus:CheckStatus (Status status)
+in [0x0000f] (at
+/home/cvs/mcs/class/System.Drawing/System.Drawing/Image.cs:741)
+System.Drawing.Image:get_Width ()
+in (wrapper remoting-invoke-with-check) System.Drawing.Image:get_Width ()
+in [0x000d2] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2572)
+System.Windows.Forms.ThemeWin32Classic:DrawPictureBox
+(System.Drawing.Graphics dc, Rectangle clip,
+System.Windows.Forms.PictureBox pb)
+in [0x00012] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PictureBox.cs:196)
+System.Windows.Forms.PictureBox:OnPaint
+(System.Windows.Forms.PaintEventArgs pe)
+in [0x001b6] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3673)
+System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m)
+in [0x00007] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:158)
+System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in [0x00056] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146)
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam)
+in [0x0001c] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2327)
+System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00006] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:385)
+System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x0023f] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in [0x00156] (at /home/cvs/pdn/src/Startup.cs:139) PaintDotNet.Startup:Start ()
+in [0x00006] (at /home/cvs/pdn/src/Startup.cs:149) PaintDotNet.Startup:Main
+(System.String[] args)


More information about the mono-bugs mailing list