Einzelnen Beitrag anzeigen

nahpets
(Gast)

n/a Beiträge
 
#2

AW: Object.Free ruft unter XE5 kein Destroy mehr auf!?

  Alt 21. Dez 2016, 00:41
Ich interpretiere dashier mal so:
Delphi-Quellcode:
procedure TObject.Free;
begin
// under ARC, this method isn't actually called since the compiler translates
// the call to be a mere nil assignment to the instance variable, which then calls _InstClear
{$IFNDEF AUTOREFCOUNT}
  if Self <> nil then
    Destroy;
{$ENDIF}
end;
Es muss irgendwo ein {$DEFINE AUTOREFCOUNT} geben und deshalb wird der Quelltext da nicht mit kompiliert.

Das solltest Du mal prüfen und feststellen, ob Du das ändern kannst.
  Mit Zitat antworten Zitat