Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?



Ivan Levashew wrote:
Skybuck Flying пишет:
Are dynamic arrays in dynamic array of records automatically cleaned up when dynamic array of records is nilled ?

Yes.

Perhaps you may encounter some bugs when global variables defined right
in the "Program" unit are not finalized, but there were no any other
problem here.

You're describing bug 10689. The workaround is to initialize the global variable when you declare it. Supposedly, it's fixed, but maybe only for interfaces and not for dynamic arrays. I only tested and reported it for interfaces.

http://qc.codegear.com/wc/qcmain.aspx?d=10689

--
Rob
.



Relevant Pages