-
Declaration:
- Procedure Freemem (Var P : pointer; Count : Longint);
-
Description:
- Freemem releases the memory occupied by the pointer P, of size Count (in bytes), and returns
it to the heap. P should point to the memory allocated to a dynamic variable.
-
Errors:
- An error will occur when P doesn’t point to the heap.
-
See also:
- Getmem (503), New (536), Dispose (479)
Listing: refex/ex28.pp