[Mono-bugs] [Bug 477438] New: Virtual/ownerdraw Listview cant handle >16 item
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 18 16:35:10 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=477438
Summary: Virtual/ownerdraw Listview cant handle >16 item
Classification: Mono
Product: Mono: Class Libraries
Version: unspecified
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: Dax at daxxfiles.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
When using a virtual+ownerdraw Listview, it is impossible to display more than
16 item due to an IndexOutOfRangeException
Steps to reproduce the problem:
1. create a form with a listview: ownerdraw, virtual, details
2. set stubs for drawing/getting data
3. set itemcount to 17
4. run
Actual Results:
System.IndexOutOfRangeException: Array index is out of range.
at System.Windows.Forms.ListView.GetItemLocation (Int32 index) [0x00000] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:2095
at System.Windows.Forms.ListView.get_LastVisibleIndex () [0x00054] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1166
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ListView:get_LastVisibleIndex ()
at System.Windows.Forms.ThemeWin32Classic.DrawListViewItems
(System.Drawing.Graphics dc, Rectangle clip, System.Windows.Forms.ListView
control) [0x00011] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2638
at System.Windows.Forms.ListView+ItemControl.OnPaintInternal
(System.Windows.Forms.PaintEventArgs pe) [0x00000] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:3027
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m)
[0x00078] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5559
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0016c] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5319
at System.Windows.Forms.ListView+ItemControl.WndProc
(System.Windows.Forms.Message& m) [0x0009a] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:3050
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/var/abs/local/mono-svn/src/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242
Expected Results:
17 drawn items
--
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