[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)

ExecFreeMem

Free a memory block with given size

Declaration

Source position: exec.pas line 1243

procedure ExecFreeMem(

  MemoryBlock: APTR;

  ByteSize: ULONG

);

Arguments

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)

Description

Free a memory block allocated using AllocMem(), 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.

See also

AllocMem

  

Allocate memory given certain requirements


Documentation generated on: 2017-01-10