[Mono-bugs] [Bug 79370][Maj] New - TextBox crashes when width < 0

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 11 17:16: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 miguel at ximian.com.


--- shadow/79370	2006-09-11 17:16:29.000000000 -0400
+++ shadow/79370.tmp.2709	2006-09-11 17:16:29.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 79370
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: TextBox crashes when width < 0
+The attached program will crash Windows.Forms.
+Try making the window as small as possible (only the width matters).  The
+textbox entry will eventually crash with:
+Unhandled Exception: System.Exception: Value '-1' must be greater than or
+equal to 0.
+  at System.Windows.Forms.ScrollBar.set_LargeChange (Int32 value) [0x00000]
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_LargeChange (int)
+  at System.Windows.Forms.TextBoxBase.CalculateScrollBars () [0x00000]
+  at System.Windows.Forms.TextBoxBase.CalculateDocument () [0x00000]
+  at System.Windows.Forms.TextBoxBase.SetBoundsCore (Int32 x, Int32 y,
+Int32 width, Int32 height, BoundsSpecified specified) [0x00000]
+  at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width,
+Int32 height, BoundsSpecified specified) [0x00000]
+  at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width,
+Int32 height) [0x00000]
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:SetBounds (int,int,int,int)
+  at System.Windows.Forms.Control.PerformLayout
+(System.Windows.Forms.Control affectedControl, System.String
+affectedProperty) [0x00000]
+  at System.Windows.Forms.Control.OnResize (System.EventArgs e) [0x00000]
+  at System.Windows.Forms.Form.OnResize (System.EventArgs e) [0x00000]
+  at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) [0x00000]
+  at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32
+width, Int32 height, Int32 clientWidth, Int32 clientHeight) [0x00000]
+  at System.Windows.Forms.Control.UpdateBounds () [0x00000]
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
+  at System.Windows.Forms.ScrollableControl.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.ContainerControl.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x00000]
+  at System.Windows.Forms.XplatUIX11.SendMessage (IntPtr hwnd, Msg message,
+IntPtr wParam, IntPtr lParam) [0x00000]
+  at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id,
+System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32
+wFilterMax) [0x00000]
+  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
+System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32
+wFilterMax) [0x00000]
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00000]
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000]
+  at Xml.Render.Form1.Main () [0x00000]
+Thats the first part of the bug;   On Windows I noticed that the TextBox
+refuses to become smaller than a certain size

More information about the mono-bugs mailing list