Name
FreeMemory Function
Syntax
function FreeMemory(P: Pointer): Integer; cdecl;
Description
FreeMemory
calls SysFreeMem
to
free P
using Delphi’s built-in memory
manager. It returns zero for success and non-zero for failure. If
P
is nil
,
FreeMemory
returns zero.
FreeMemory
is for use by C++ Builder. If you are
writing a memory manager in Delphi, you should call
SysFreeMem
.
FreeMemory
is a real function.
See Also
Dispose Procedure, FreeMem Procedure, GetMemory Function, IsMultiThread Variable, ReallocMemory Function, SysFreeMem Function |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.