MEMFREE: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:_MEMFREE}} The _MEMFREE statement frees the designated memory block _MEM value and must be used with all memory functions. {{PageSyntax}} : _MEMFREE {{Parameter|memoryVariable}} {{Parameters}} * ALL designated _MEM type {{Parameter|memoryVariable}} values must be freed to conserve memory when they are no longer used or needed. {{PageDescription}} * Since _MEM type variables cannot use a suffix, use DIM {{Parameter|memoryVaria...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:_MEMFREE}}
{{DISPLAYTITLE:_MEMFREE}}
The [[_MEMFREE]] statement frees the designated memory block [[_MEM]] value and must be used with all memory functions.  
The [[_MEMFREE]] statement frees the designated memory block [[_MEM]] value and must be used with all memory functions.




Line 7: Line 7:




{{Parameters}}
{{PageParameters}}
* ALL designated [[_MEM]] type {{Parameter|memoryVariable}} values must be freed to conserve memory when they are no longer used or needed.
* ALL designated [[_MEM]] type {{Parameter|memoryVariable}} values must be freed to conserve memory when they are no longer used or needed.


Line 17: Line 17:


{{PageSeeAlso}}
{{PageSeeAlso}}
* [[_MEM]] {{text|(variable type)}}
* [[_MEM]]
* [[_MEM (function)]]
* [[_MEM (function)]]
* [[_MEMNEW]] {{text|(function)}}
* [[_MEMNEW]]
* [[_MEMIMAGE]] {{text|(function)}}
* [[_MEMIMAGE]]
* [[_MEMELEMENT]] {{text|(function)}}
* [[_MEMELEMENT]]
* [[_MEMGET (function)]]
* [[_MEMGET (function)]]




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 21:18, 2 February 2023

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


Syntax

_MEMFREE memoryVariable


Parameters

  • 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



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link