AV in "Alt+TAB" When TCheckComboBox is dropped down
Original Reporter info from Mantis: zgabrovski
-
Reporter name: Zdravko Gabrovski
Original Reporter info from Mantis: zgabrovski
- Reporter name: Zdravko Gabrovski
Description:
If you have a TCheckComboBox dropped down and press "Alt+Tab" to go to other application, it will raise "SigSeg failed(AV)"
The problem comes from function TCustomCheckCombo.GetItemEnabled(AIndex: Integer): Boolean; in comboex.inc file, because AIndex is = -1 in that moment.
I just add sanity check in all methods in this include unit and now problem dissapere.
Steps to reproduce:
Restore attached project, compile it under trunk lazarus build. Run it.
Just click CheckComboBox to drop down, and when the list is dropped down press Alt+tab.
Project will raise SigSeg exception.
Additional information:
I tested under Windows but for sure will bi similar problem under all widgetsets.
Mantis conversion info:
- Mantis ID: 37839
- OS: All
- OS Build: All
- Build: trunk
- Platform: All
- Version: 2.1 (SVN)
- Fixed in revision: 63941 (#35ba577e)