[Mono-bugs] [Bug 384182] New: Scrollbar crash etc when LargeChange is zero

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 27 09:08:25 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=384182


           Summary: Scrollbar crash etc when LargeChange is zero
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


VScrollbar and HScrollbar behave badly and crash when LargeChange is set to
zero.  See full description below.

In MSFT, when LargeChange is set to zero: on clicking on the arrows or clicking
in the bar no scrolling occurs, and get_SmallChange returns zero; the tab
however can still be dragged to scroll.  Also the tab becomes square shaped in
that case.

This was first observed due to a recent fault in ListBox, bug to follow.

The apparent faults include:
* Scrollbar tab is very thin, rather than in proportion to the viewable extent.
* When scrolling the panel using arrow-keys etc, when reached the bottom item
the scrollbar tab is still only part way down the scrollbar.
* Clicking the scrollbar background (to scroll by a page worth) has no effect.
* When scrolling by clicking the down arrow when the bottom is reached a crash
occurs:
[[
Unhandled Exception: System.ArgumentOutOfRangeException: '9' is not a valid
value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum' [@8->9
0<->8 1_0]
Parameter name: Value
at System.Windows.Forms.ScrollBar.set_Value (int) <0x00502>
at System.Windows.Forms.ScrollBar.SmallIncrement () <0x00087>
at System.Windows.Forms.ScrollBar.OnMouseUpSB
(object,System.Windows.Forms.MouseEventArgs) <0x0022b>
at System.Windows.Forms.Control.OnMouseUp (System.Windows.Forms.MouseEventArgs)
<0x00050>
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&)
<0x001a4>
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
<0x00200>
at System.Windows.Forms.ScrollBar.WndProc (System.Windows.Forms.Message&)
<0x0000d>
at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00014>
at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00022>
at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00168>
at System.Windows.Forms.XplatUIWin32.InternalWndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00060>
at (wrapper native-to-managed)
System.Windows.Forms.XplatUIWin32.InternalWndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00063>
at (wrapper managed-to-native)
System.Windows.Forms.XplatUIWin32.Win32DispatchMessage
(System.Windows.Forms.MSG&) <0x00004>
at System.Windows.Forms.XplatUIWin32.DispatchMessage
(System.Windows.Forms.MSG&) <0x0000a>
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&)
<0x00015>
at System.Windows.Forms.Application.RunLoop
(bool,System.Windows.Forms.ApplicationContext) <0x0099f>
at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext) <0x0004c>
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00025>
at ListControlIBindingList.Foo (bool) <0x00208>
at ListControlIBindingList.Main (string[]) <0x00023>
]]
((The extra text in the message shows [@current->requested minimum<->maximum
smallChange_largeChange])).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list