[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FREEMEM                  Release Space on the Heap                   pp 125

 Syntax:  FreeMem (PtrVar,IntVar) ;

 Type:    N/A

 Form:    Procedure

 Purpose: Release IntVar number of bytes in Heap space at PtrVar pointer.

 Notes:   The EXACT number of bytes requested by GetMem must be used.
          FreeMem will release space on the heap.  This procedure will
          release the amount of space requested by GetMem.

          PtrVar is a pointer variable that will point to the released
          space, and IntVar is an integer variable holding the count.


 ----------------------------------------------------------------------------

 Usage:
       VAR
          IntVar : Integer         ;
          PtrVar : ^Integer        ;

       BEGIN
          FreeMem (PtrVar, IntVar) ;
       END.

See Also: GetMem Pointer Release
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson