[Mono-bugs] [Bug 389250] New: ListBox: exception on any action when one-column multicolumn

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 12 05:18:33 EDT 2008


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


           Summary: ListBox: exception on any action when one-column
                    multicolumn
           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: ---


With repro app attached ListBox in multicolumn mode, at its default width of
120 and action -- click on any item etc -- causes the following exception:
[[

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
Parameter name: GetItemRectangle index out of range.
  at System.Windows.Forms.ListBox.GetItemRectangle (Int32 index) [0x00165] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:836 
  at System.Windows.Forms.ListBox.GetItemDisplayRectangle (Int32 index, Int32
first_displayble) [0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1274 
  at System.Windows.Forms.ListBox.InvalidateItem (Int32 index) [0x0000c] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1671 
  at System.Windows.Forms.ListBox.set_FocusedItem (Int32 value) [0x0002e] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1971 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ListBox:set_FocusedItem (int)
  at System.Windows.Forms.ListBox+SelectedIndexCollection.AddCore (Int32 index)
[0x000bf] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:2616 
  at System.Windows.Forms.ListBox+SelectedIndexCollection.Add (Int32 index)
[0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:2590 
  at System.Windows.Forms.ListBox.set_SelectedIndex (Int32 value) [0x00050] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:516 
  at System.Windows.Forms.ListBox.OnMouseMoveLB (System.Object sender,
System.Windows.Forms.MouseEventArgs e) [0x00041] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1770 
  at System.Windows.Forms.Control.OnMouseMove
(System.Windows.Forms.MouseEventArgs e) [0x0001c] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6310 
  at System.Windows.Forms.Control.WmMouseMove (System.Windows.Forms.Message& m)
[0x00063] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5711 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x001d4] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5325 
  at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message& m)
[0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1135 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:227 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:208 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00084] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:240 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3293 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:576 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00359] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:908 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00014] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:694 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] in
/usr/local/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:682 
  at TextBoxLines.Main () [0x00319] in ListBoxHeight.cs:81
]]


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