[Mono-bugs] [Bug 425049] New: ListView: EnsureVisible(>=16) IndexOutOfRangeException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 10 02:33:05 EDT 2008


           Summary: ListView: EnsureVisible(>=16) IndexOutOfRangeException
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: i386
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: johnm at hlaustralia.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: DeveloperNet

Description of Problem:

When Calling ListView.EnsureVisible() with an Index >= 16 an IndexOutOfBounds
exception is raised.

Steps to reproduce the problem:
1. Add 20 Items to a ListView
2. Call ListView.EnsureVisible(16)

Actual Results:

Exception is Raised in ListView.cs GetItemLocation

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
at System.Windows.Forms.ListView.GetItemLocation (int) [0x00000] in
at System.Windows.Forms.ListView.EnsureVisible (int) [0x00030] in
at (wrapper remoting-invoke-with-check)
ble (int) <0x00041>
at SinchWin.TransactionView.SelectRecord (int) <0x00091>

Expected Results:
Item Should become visible.

How often does this happen? 
Every Time.

Additional Information:

Looks like in ListView.cs items_location is defined as a fixed size array with
16 elements.

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