Problem with TDBChartSource in tadbsource.pas lazarus / 55-TAChart ---------------------------------------------------------------------- Lutz Mändle · 2025-01-28 20:49 There is a probability to have an unbalanced call to FDataLink.Dataset.DisableControls/FDataLink.Dataset.EnableControls in the methods TDbChartSource.BeforeDraw and TDbChartSource.AfterDraw respectively. In the method TDbChartSource.AfterDraw the call to FDataLink.Dataset.EnableControls is omitted, if the dataset is closed during a refresh cycle. Then all data aware components linked to this dataset don't work anymore until the program is restartet. The fix is to exchange the lines 149 and 150 in the source file. Here is the corrected method: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TDbChartSource.AfterDraw;begin  inherited AfterDraw;  try    FDataLink.Dataset.EnableControls;    if not FDataLink.Active or (FBookmark = nil) then exit;    FDataLink.DataSet.GotoBookmark(FBookmark);    FDataLink.DataSet.FreeBookmark(FBookmark);  finally    FBookmark := nil;    VLockedDatasets.Remove(FDataLink.DataSet);  end;end; ---------------------------------------------------------------------- wp · 2025-01-29 00:11 Committed, merged to Fixes_3 and Fixes_4. Thanks.