System.AttemptToUseSharedMemoryManager

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AttemptToUseSharedMemoryManager: Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AttemptToUseSharedMemoryManager(void);

Properties

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

Description

Attempts to use a shared memory manager.

AttemptToUseSharedMemoryManager searches the current process for a shared memory manager. If no memory has been allocated using this module’s memory manager, it switches to using the shared memory manager. It returns True if it finds a shared memory manager to which it can switch. It returns False otherwise.

Note: The memory manager cannot be changed once memory has been allocated, because the new memory manager cannot free the pointers allocated through a different memory manager. This function is not thread safe.

See Also