[next] [prev] [prev-tail] [tail] [up]

#### Getmem

Declaration:
  Procedure Getmem(Var P:pointer;Size:Longint);
Description:
  GetMem reserves Size bytes of memory on the heap and returns a pointer to it in P. Size is stored at offset -4 of the result, and is used to release the memory again. P can be a typed or untyped pointer.

  Be sure to release this memory with the FreeMem (600) call defined in the objpas unit.

Errors:
  In case no more memory is available, and no more memory could be obtained from the system a run-time error is triggered.
See also:
  FreeMem (600), Getmem (506).

For an example, see FreeMem (600).

[next] [prev] [prev-tail] [front] [up]