FREE_BUFFER
Release a memory area reserved by an ALLOC_BUFFER.
WebVue support - Yes.
Syntax
FREE_BUFFER(Handle);
There is no return type.
Argument |
Meaning |
Handle |
The location of the memory buffer as returned by ALLOC_BUFFER. |
Execution
The memory buffer allocated by ALLOC_BUFFER and referenced by Handle is released.
Example
SUB Main()
'Declare the return code
DIM lngPointer as long;
DIM intValue as integer;
intValue = 50;
'intValue <=> intValue*4 bytes
lngPointer = ALLOC_BUFFER (intvalue);
PRINT("pointer =", lngPointer );
'The memory area from ALLOC_BUFFER must always be released after use
FREE_BUFFER (lngPointer);
END SUB