You are not logged in.
Pages: 1
My suggestion is to upgrade information about using TAutoFree. I don't have any problems with that in FPC. Delphi implementation/behavior for releasing of returned interfaces from methods is IMO buggy, correct using of TAutoFree IMO should be presented as:
with TAutoFree.One(r, TSQLSomeRecord.CreateAndFillPrepare(...)) do
while r.FillOne do
GSlaveServer.Add(r, true, false);
best regards,
Maciej Izak
Last edited by hnb (2015-07-20 12:25:02)
best regards,
Maciej Izak
Offline
Bad idea? Using additional Interface variable for TAutoFree in FPC is uncomfortable. "with" is solving this problem.
best regards,
Maciej Izak
Offline
Pages: 1