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

           Summary: Listview: index out of range exception removing the last
                    item
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: i586
        OS/Version: openSUSE 10.2
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: Development


Repro-steps:

At runtime
- use a listview filled with some items
- select the last item in the list
- remove the item (i.e. press a button that execute a listView.Items.Remove of
the item selected)
- click (focus) on the list view 

This cause an exception:

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
Parameter name: displayIndex
  at System.Windows.Forms.ListView+ListViewItemCollection.get_Item (Int32
displayIndex) [0x00000]
  at System.Windows.Forms.ListView.get_FocusedItem () [0x00000]
  at System.Windows.Forms.ListView.FocusChanged (System.Object o,
System.EventArgs args) [0x00000]
  at System.Windows.Forms.Control.OnGotFocus (System.EventArgs e) [0x00000]
  at System.Windows.Forms.Control.WmSetFocus (System.Windows.Forms.Message& m)
[0x00000] [.....]


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to