TListView - Assign SmallImages with OwnerData consume 100% CPU
Original Reporter info from Mantis: Dibo
-
Reporter name: Krzysztof Dibowski
Original Reporter info from Mantis: Dibo
- Reporter name: Krzysztof Dibowski
Description:
Hi,
I'm using OwnerData. If I assign TImageList to SmallImages then it consume 100% CPU (see attached image, it is 25% because I have 4 cores). GUI is fully responsible and app is closing without error. It is especially weird because I'm not using ImageIndex in items and image list is empty. It occur only if items count is > 0. This issue is not present with OwnerData = False.
Regards
Steps to reproduce:
Run attached demo and go to processes manager. You should see 100% CPU usage. Comment line:
ListView1.SmallImages := ImageList1;
... and everything should be fine
Additional information:
Tested on Lazarus 1.7 from SVN but occur also on stable 1.4.4
FPC 2.6.4
Kubuntu 14.04 64 bit
Qt widgetset