[fpc-devel] interface vs optimizer
antiriad at gmail.com
Fri Jan 20 23:56:31 CET 2006
there is a problem with functions returning interfaces:
if nobody stores the result, the object decrements one reference despite
turn off optimizations.
function getobj: IUnknown;
Result := TInterfacedObject.Create;
// here result of getobj has died :(
es there a solution or workaround?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel