Dalija Prasnikar
Developers that extensively use interfaces in Delphi probably know about a long-standing issue with the compiler, where interface parameters declared as const or [ref] will cause a memory leak if a reference-counted object instance is… … Read more
5 months ago in Inline variables, Leaks, memory management, Parameters0
Dalija Prasnikar
This story begins with the FreeAndNil procedure, why its signature could not have a typed var parameter, why we can only pass variables declared as TObject to such procedures, and why the compiler refuses to… … Read more
4 years ago in Delphi, FreeAndNil, Parameters0