Sign in Join
FPDoc Onlineexperiment

TDynamicDataQueue.Clear procedure

Member of TDynamicDataQueuepublicIn unit DynQueue

Frees data items and storage allocated for the queue.

Declaration

pascal
procedure Clear

Description

Clear is a procedure used to free all items stored in the queue, and the memory allocated for their storage. Clear iterates over the items in the queue, and calls FreeMem to de-allocate memory reserved to store each item structure and its data. The internal storage for the queue is set to Nil when all items have been de-allocated.

Clear resets the values for internal members used for the queue Size, and those used for item positions in the queue.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.