[Mono-bugs] [Bug 374713] New: ComboBox: PageUp/PageDown crash in Simple mode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 28 05:38:41 EDT 2008


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

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=374713#c1

           Summary: ComboBox: PageUp/PageDown crash in Simple mode
           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: ---


ComboBox supports PageUp/PageDown to navigate through the list.  However this
does not work in various cases.

In Simple mode, it mis-navigates and also causes a crash.

Faults:
* PageDn/Up -> moves one _item_ up/down respectively.
* At top/bottom of list wierd behaviour including exception.


Repro #1
1. Open repro app afresh, ComboBox in Simple mode.
2. Hit PageDn -> crash!
[[
Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex (int)
at System.Windows.Forms.ComboBox.OnKeyDownCB
(object,System.Windows.Forms.KeyEventArgs)
at System.Windows.Forms.Control.OnKeyDown (System.Windows.Forms.KeyEventArgs)
at System.Windows.Forms.ComboBox.OnKeyDown (System.Windows.Forms.KeyEventArgs)
at System.Windows.Forms.Control.ProcessKeyEventArgs
(System.Windows.Forms.Message&)
..trimmed and truncated...
]]


Repro #2
1. Open repro app afresh, ComboBox in Simple mode, logging enabled.
2. Hit down-arrow four times.  See selection 'MButton'.
3. Hit PageDn.
Should navigate to one page down instead it navigates to one item up!  Logging
confirms thus.

Repro #2b
4. Keep hitting PageDn until at the top item, 'None' with logging index=0.
5. Hit PageDn again.  See non-item being chosen, index=-1!
6. Again -> crash.

Simple mode is of course itself broken, bug 371991.  So this lower priority? 
Maybe the zero-size of the list is the sole cause of this bug too??

Present in 1.2.6, 1.9, SVN.


-- 
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