System.SysFreeMem

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SysFreeMem(P: Pointer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall SysFreeMem(void * P);

Properties

Type Visibility Source Unit Parent
function public
GETMEM.INC
System.hpp
System System

Description

Frees the memory pointed to by a specified pointer.

When implementing a custom memory manager, use SysFreeMem to free the memory pointed to by the P parameter.

Note: The System unit provides a limited implementation of SysFreeMem. If the custom memory manager needs to support reference counting and objects that can be shared between processes, use the implementation of SysFreeMem, provided by the ShareMem unit. When used, ShareMem must be the first unit in the project file in order to enforce a consistent memory management model.

Warning: This is an internal function and should not be called directly by any application. Use the FreeMem function instead.

See Also