[regression] Sigsegv exception raised when assigning images to Tlistview columns
Original Reporter info from Mantis: gabibbo
-
Reporter name: Marco Dedo
Original Reporter info from Mantis: gabibbo
- Reporter name: Marco Dedo
Description:
When i try to assign images to Tlistview columns (viewstyle=vsreport), sigsegv exception is raised if the view is empty, or corrupted control is displayed if there is at least one Tlistitem.
This problem was not present in version 1.014.
Steps to reproduce:
- Create a new TlistView in a form, and set viewstyle=vsreport
- Create a new TimageList containing an image
- Assign the TimageList to TlistView "SmallImages" property.
- Create a new column for the listview
- Set the Column "ImageIndex" property to a 0 value (first image of TimageList) or any value different from -1.
Additional information:
Access violation is raised trying to modify imageindex value using the IDE, SIGSEGV exception when changing the same value using a piece of code (see attached images)
Mantis conversion info:
- Mantis ID: 25844
- OS: Windows XP/Seven
- Build: 1.2.0 (SVN 44303)
- Platform: Windows
- Fixed in revision: r44454 (#0cf581f1)
- Target version: 1.2.2