Since version V2019.28 we see often the following crash (not reproducible in a test project yet)
when freeing a window with a TChart:
The multiple TFastLineSeries are created runtime like that:
Code: Select all
procedure CreateNewSeries(ParentChart: TChart; SeriesTitle: string;
SeriesColor: TColor; SeriesLineWidth: Integer;
ProfilePoints: TProfilePoints);
var
i: Integer;
tmpLineSeries: TFastLineSeries;
begin
if Length(ProfilePoints) > 0 then
begin
tmpLineSeries := TFastLineSeries.Create(ParentChart);
tmpLineSeries.ParentChart := ParentChart;
tmpLineSeries.BeginUpdate;
try
tmpLineSeries.Color := SeriesColor;
tmpLineSeries.Title := SeriesTitle;
tmpLineSeries.LinePen.Width := SeriesLineWidth;
for i := 0 to High(ProfilePoints) do
tmpLineSeries.AddXY(ProfilePoints[i].X, ProfilePoints[i].Y);
finally
tmpLineSeries.EndUpdate;
tmpLineSeries.Active := True;
end;
end;
end;
Any thoughts about what could happen in TFastLineSeries.Clear or what could be wrong with creation of the TFastLineSeries?
best regards