Dataset already registered : "%s" SQLite lazarus / 16-Databases ---------------------------------------------------------------------- lainz · 2019-04-08 22:21 I get this message, in the %s part I get just an empty string. Message definition: https://github.com/alrieckert/freepascal/blob/master/packages/fcl- db/src/base/dbconst.pas Used in this unit in two places: https://github.com/newpascal/freepascal/blob/master/packages/fcl- db/src/base/database.inc#L184 'RegisterDataset' method. Any ideas of what can generate this error? Edit: database.inc is on file DB.pas, that contains the class TDatabase, used by TSQLite3Connection (child of it). Used in other class here 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 { ---------------------------------------------------------------------    TDBDataset  -------------------------------------------------------- -------------} Procedure TDBDataset.SetDatabase (Value : TDatabase); begin  If Value<>FDatabase then    begin    CheckInactive;    If Assigned(FDatabase) then      FDatabase.UnregisterDataset(Self);    If Value<>Nil Then      Value.RegisterDataset(Self);    FDatabase:=Value;    end;end;  TDBDataset.SetTransaction (Value : TDBTransaction); begin  CheckInactive;  If Value<>FTransaction then    begin    If Assigned(FTransaction) then      FTransaction.UnregisterDataset(Self);    If Value<>Nil Then      Value.RegisterDataset(Self);    FTransaction:=Value;    end;end; It must be setting the database or setting the transaction... The problem is that this comes randomly and I can't debug this.