Thema: Delphi [XE2] Live Bindings

Einzelnen Beitrag anzeigen

Thom

Registriert seit: 19. Mai 2006
570 Beiträge
 
Delphi XE3 Professional
 
#18

AW: [XE2] Live Bindings

  Alt 27. Sep 2011, 11:39
Vielleicht sollte man den Aufruf korrekt durchführen?
Delphi-Quellcode:
procedure Test(i: IInterface);
begin

end;

var
  o: TInterfacedObject;
begin
  o := TInterfacedObject.Create;
  Test(o as IInterface); //<- RefCount wird automatisch erhöht
  //Objekt "lebt" noch!
end;
Thomas Nitzschke
Google Maps mit Delphi
  Mit Zitat antworten Zitat