Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: Warnung W1010 bei Destructor
5. Jul 2011, 18:18
Das bedeutet, dass du den Destruktor überschreiben sollst:
Delphi-Quellcode:
TMyObj = class(TObject)
strict private
Lines:TStringList;
public
constructor Create();
destructor Destroy; override;
end;
destructor TMyObj.Destroy;
begin
FreeAndNil(Lines);
inherited Destroy;
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|