ERangeError in list based components (e.g. ListBox) with vertical scrollbars when there are at least 32779 items in it
Original Reporter info from Mantis: Dee
-
Reporter name: Dee
Original Reporter info from Mantis: Dee
- Reporter name: Dee
Description:
An ERangeError occurs if I try to scroll down (e.g. in a ListBox) via mouse wheel to an item which is at least on the 32779th positon or higher. But this error occurs only if the IDE is compiled with debugging information (Tools -> Configure "Build Lazarus" -> Profile to Build -> Debug IDE).
Steps to reproduce:
- Recompile the Lazarus IDE as Debug IDE
- place ListBox in any form
- fill the ListBox with at least 32779 items (e.g. via a button and a loop)
- scroll down in the ListBox at least to the 32779 item or higher with the mouse wheel
- RunError 201 and ERangeError occurs
Additional information:
Seems to be an 64-bit problem. Also tested with 2.0.2 version and error occurs there, too.
Here is a link to a forum thread I created talking about the problem:
http://www.lazarusforum.de/viewtopic.php?f=18&t=12383
The user wp_xyz in this thread might have posted the solution.
SHA-1 checksum of demo program attachment: 095056e3ef393f356a0ad8f20196c5c9409e6312
Mantis conversion info:
- Mantis ID: 35610
- OS: Windows (64-bit)
- OS Build: 7, 10
- Build: r60307
- Platform: Desktop-PC, Notebook
- Version: 2.0
- Fixed in revision: 61321 (#4ec80d56)
- Target version: 2.0.4