[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
https://bugzilla.novell.com/show_bug.cgi?id=425049
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
range.
at System.Windows.Forms.ListView.GetItemLocation (int) [0x00000] in
C:\cygwin\tm
p\monobuild\build\BUILD\mono-2.0\mcs\class\Managed.Windows.Forms\System.Windows.
Forms\ListView.cs:2055
at System.Windows.Forms.ListView.EnsureVisible (int) [0x00030] in
C:\cygwin\tmp\
monobuild\build\BUILD\mono-2.0\mcs\class\Managed.Windows.Forms\System.Windows.Fo
rms\ListView.cs:3658
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ListView.EnsureVisi
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