DbGrid with multiselect option will cause AV on application exit.
Original Reporter info from Mantis: Jesus @jramx
-
Reporter name: Jesus Reyes
Original Reporter info from Mantis: Jesus @jramx
- Reporter name: Jesus Reyes
Description:
Humberto Sales has reported that a Dbgrid with multiselect option where the user has extended the selection with SHIFT + ARROW keys will cause AV on Application exit.
Further testing show that If selection is made with CTRL+CLICK the AV doesn't occur.
Later it was also found that an AV happen if selection is done by clicking the indicator column (No keys need to be pressed).
Steps to reproduce:
Run the attached test project (thanks Humberto Sales)
Click some record field
Extend the selection up or down the selected record
Press the "button1" button (optional)
Exit the application
an Access Violation will occur while tryint to free FKeyBookmark.
Additional information:
This problem probably affects all released and development lazarus versions.
Mantis conversion info:
- Mantis ID: 38303
- Version: 2.0.10
- Fixed in version: 2.1 (SVN)
- Fixed in revision: 64378 (#ad7d2394)
- Target version: 2.2