[Mono-bugs] [Bug 439576] New: Crash when adding groups to a ListView after adding items

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 28 13:13:41 EDT 2008


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


           Summary: Crash when adding groups to a ListView after adding
                    items
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mgorse at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Adding groups to a form after adding items can cause an exception when
recalculating the layout if the view is set to Details.  See the attached
program:

FormListener Initialized

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
range.
  at System.Windows.Forms.ListView.SetItemLocation (Int32 index, Int32 x, Int32
y, Int32 row, Int32 col) [0x00000] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1571 
  at System.Windows.Forms.ListView.LayoutDetails () [0x0015f] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1965 
  at System.Windows.Forms.ListView.CalculateListView (ListViewAlignment align)
[0x0003d] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:2018 
  at System.Windows.Forms.ListView.Redraw (Boolean recalculate) [0x00029] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1161 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ListView:Redraw
(bool)
  at System.Windows.Forms.ListView+ListViewItemCollection.CollectionChanged
(Boolean sort) [0x00023] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:5467 
  at System.Windows.Forms.ListView+ListViewItemCollection.Add
(System.Windows.Forms.ListViewItem value) [0x0003e] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:5052 
  at System.Windows.Forms.ListViewItem.set_Group
(System.Windows.Forms.ListViewGroup value) [0x00028] in
/home/mgorse/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs:653 
  at ListViewGroupsExample..ctor () [0x001d2] in /home/mgorse/crash.cs:63 
  at (wrapper remoting-invoke-with-check) ListViewGroupsExample:.ctor ()
  at ListViewGroupsExample.Main () [0x00005] in /home/mgorse/crash.cs:79


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