GetTopItem and GetVisibleRowCount of TCustomListView crash when called with no handle allocated
Original Reporter info from Mantis: djenkins @dfjenkins
-
Reporter name: David Jenkins
Original Reporter info from Mantis: djenkins @dfjenkins
- Reporter name: David Jenkins
Description:
Our code will sometimes call TCustomListView.GetTopItem and TCustomListVIew.GetVisibleRowCount before a before a widget handle is allocated which results in bad default values or crashes.
Suggested fix is to add HandleAllocated checks to the branches or those functions that that set default values.
Patch against rev 36681 is attached
Mantis conversion info:
- Mantis ID: 21733
- Version: 0.9.30.5 (SVN)
- Fixed in revision: 36762 (#9589dcbc)
- Monitored by: » @dfjenkins (David Jenkins)