BoxedAppSDK_SharedMem_Free

Description

The function releases a memory block that was previously allocated in the shared memory area accessible to all attached processes.

Use this function to free memory that was allocated with BoxedAppSDK_SharedMem_Alloc.

Releasing unused shared memory blocks helps avoid unnecessary resource consumption and keeps the shared memory environment efficient.

Syntax

typedef LONGLONG BOXEDAPP_SHARED_PTR;
 
void __stdcall BoxedAppSDK_SharedMem_Free(BOXEDAPP_SHARED_PTR shared_ptr);
type
BOXEDAPP_SHARED_PTR = LargeInt;
 
procedure BoxedAppSDK_SharedMem_Free(shared_ptr: BOXEDAPP_SHARED_PTR); stdcall;

Parameters

shared_ptr
A handle to the memory block in shared memory that should be released.
This handle is obtained from BoxedAppSDK_SharedMem_Alloc.

Remarks

Once released, the memory block can no longer be accessed through BoxedAppSDK_SharedMem_Lock or BoxedAppSDK_SharedMem_Unlock. Accessing freed memory results in undefined behavior.

See Also