Sign in Join
FPDoc Onlineexperiment

Finalize procedure

In unit System

Finalize (clean up) memory block using RTTI.

Declaration

pascal
procedure Finalize(var T: TManagedType; ACount: SizeInt=1)

Description

Finalize is a compiler intrinsic: it cleans up (finalizes) a memory area belonging to a variable T of a managed type ( TManagedType). 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.