Removing last line from TStringGrid crashes application
Original Reporter info from Mantis: User137
-
Reporter name: Teemu Valo
Original Reporter info from Mantis: User137
- Reporter name: Teemu Valo
Description:
I have a TStringGrid on application and:
procedure TForm1.eListDblClick(Sender: TObject);
begin
eList.RowCount:=eList.RowCount-1;
end;
When i doubleclick last line and wait or click somewhere again it gives crash dialog and some info about index out of bounds. It's interesting to note that it doesn't crash directly on doubleclick but only afterwards, like triggered by some internal event.
Additional information:
This error doesn't happen with clean application, there are a few properties set with this specific TStringGrid. I have yet been unable to locate which property exactly, and debugger doesn't give me enough help either.
Debug stops at TCustomGrid.CellRect().
Included simple empty project with just this component and it crashes aswell.
Updated to SVN 29002.
Mantis conversion info:
- Mantis ID: 18498
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 29577 (#cb47ca2b)
- Monitored by: » User137 (Teemu Valo)
- Target version: 1.0.0
- LazTarget: 0.99.0