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.pasUsed 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
{ ---------------------------------------------------------------------
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.