Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2485

Summary: TeeGrid 1.11 FMX - always crashes on an empty grid with only column headers row defined, and no data attached.
Product: TeeGrid for Delphi Reporter: Vsevolod V Gromov <gromov.vsevolod>
Component: GridAssignee: david berneda <david>
Status: RESOLVED FIXED    
Severity: critical CC: marc
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Vsevolod V Gromov 2021-11-21 23:08:54 EST
Whenever an empty (data-less) grid control is being hovered over, it would try to FindRow (Tee.Grid.Rows.pas, line 1353)
This subroutine, is throwing AV at line 1378, because there is no Data assigned.
Work-around:
Adding the following at the routine start would fix that, also eliminating the reulst := -1; at the end of this sub.
Result := -1;
if not Assigned(Data) then
  exit;
Comment 1 marc meumann 2022-11-03 06:28:52 EDT
Thank you for the input Vsevolod. Modification included.