[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FreeMem Deallocates Dynamically Allocated Memory
FreeMem(var P : <pointer>; Amt : Integer);
Deallocates Amt bytes starting at the address pointed to by P. Assumes
that you have previously allocated memory using GetMem(P, Amt), which
allocates space on the heap, and that Amt is exactly the same value in
both calls. Note that FreeMem does not automatically set P to NIL; you
must do that yourself.
P A pointer to any data type.
Amt Number of bytes to be deallocated.
-------------------------------- Example ---------------------------------
FreeMem(P,SizeOf(P^)); { Free Allocated Memory }
P := NIL; { Mark Pointer as Freed }
See Also:
GetMem
New
Dispose
Mark
Release
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson