Free a memory block with given size
Source position: exec.pas line 1231
procedure ExecFreeMem( |
memoryBlock: POINTER; |
byteSize: LongWord |
); |
memoryBlock |
|
A pointer to the memory block to free |
byteSize |
|
The size of the desired block in bytes. (The operating system will automatically round this number to a multiple of the system memory chunk size) |
Free a memory block allocated using ExecAllocMem(), program should not access this memory area anymore. If a memory block is freed twice an Guru will appear AN_FreeTwice. if a wrong pointer is passed a AN_MemCorrupt is fired. The original name FreeMem is colliding with the RTL Freemem.
|
Allocate memory given certain requirements |