Finalize

Finalize (clean up) memory block using RTTI

Declaration

Source position: system.fpd line 98

  procedure Finalize(var T: TAnyType; ACount: SizeInt);

Description

Finalize is a compiler intrinsic: it cleans up (finalizes) a memory area T for any kind of managed variable. Finalizing means decreasing reference counts where necessary and generally zeroing out the memory area. It performs the opposite operation of initialize .

The optional ACount parameter can be used to finalize an array of values.

For examples, see initialize .

See also

Name Description
Default Return Default initialized value
initialize Initialize memory block using RTTI
TypeInfo Return pointer to type information for type