System.SetMemoryManager
Delphi
procedure SetMemoryManager(const MemMgr: TMemoryManager);
procedure SetMemoryManager(const MemMgrEx: TMemoryManagerEx);
C++
extern DELPHI_PACKAGE void __fastcall SetMemoryManager _DEPRECATED_ATTRIBUTE0 (const TMemoryManager &MemMgr)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
Sets the entry points of the memory manager.
SetMemoryManager sets the entry points of the memory manager to the three functions encapsulated by the MemMgr parameter. Use SetMemoryManager to change the memory allocation routines that are used for:
- Allocation and deallocation of dynamic strings and dynamic arrays.
- The GetMem, ReallocMem, and FreeMem standard procedures (Delphi only).
- The New and Dispose standard procedures (Delphi only).
See Also
Code Examples