[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Dispose                  Deallocates Dynamically Allocated Memory

 Dispose(var P : <pointer>);

    Deallocates the memory pointed to by P and used by P^. Assumes that
    you have previously allocated memory using New(P). Note that Dispose
    does not automatically set P to NIL; you must do that yourself. Do NOT
    use Dispose if you are using Mark and Release for memory management.

               P    A pointer to any data type.

  -------------------------------- Example ---------------------------------

           Dispose(P);              { Release memory pointed to by P }
           P := NIL;                { Set to NIL to note that it is Disposed }

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