While debugging the String4D code to hunt down a bug in the CompilerSpeedPack, I saw a lot of CopyRecord/FinalizeRecord calls with a try/finally that the compiler generated. If you have a record with managed fields (string, interface, …) and use it as a function return type the Delphi compiler will ...
More...