My TLog class inherits from class TBaseModel:
uses
BaseModelo;
TNFLog = class(TBaseModelo)
...
end;
But my class TBaseModelo needs to have an attribute of type TLog:
uses
Log;
TBaseModelo = class(TInterfacedPersistent)
public
property Log: TLog read FLog write FLog;
end;
When logging into the uses of BaseModelo, when compiling, the error "Out of memory" occurs.
What I understand is a correct loop error? How to get around this?