# hb_gcCollectAll()

Scans all memory blocks and releases the garbage memory.

Syntax

  void hb_gcCollectAll( void );

Arguments

  None.

Returns

  Nothing.

Description

  This function scans the eval stack, the memvars table, the array of static variables and table of created classes for referenced memory blocks. After scanning all unused memory blocks and blocks that are not locked are released.

Status

  Clipper

Compliance

  This function is a Harbour extension

Platforms

  All

Files

  source/vm/garbage.c

See Also

- hb_gcAlloc()
- hb_gcFree()