1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/_MEMFREE.md
2022-12-24 21:14:48 -06:00

843 B

The _MEMFREE statement frees the designated memory block _MEM value and must be used with all memory functions.

Syntax

_MEMFREE memoryVariable

Parameter(s)

  • ALL designated _MEM type memoryVariable values must be freed to conserve memory when they are no longer used or needed.

Description

  • Since _MEM type variables cannot use a suffix, use DIM memoryVariable AS _MEM to create memory handle variables.
  • All values created by memory functions must be freed using _MEMFREE with a valid _MEM variable.

See Also