Hi,
In a stringgrid, I add an Object with some data to each cell. If I click on a cell with data, the contents of the object is shown in a TEdit. If I then delete the contents of the cell, I also remove the object of this cell. At least that is the intention. When I then click on the cell from which the object was removed, I get an error (access violation). I have put in a simplified project which reproduces this.
If you click on a cell with the right mouse button you get a popup with "Delete". If you click on this, the cell will be deleted and the object will be deleted. If you then click on the empty cell again, you will get an access violation.
Is my check if there is an object attached to the cell wrong? Or is deleting the object wrong?