Skip to main content

MsysFree

Free a system.

Syntax

void MsysFree(
AIL_ID SysId //in
)

Description

This function deallocates a system previously allocated with MsysAlloc.

Prior to freeing a system, ensure that all buffers, displays, and digitizers allocated on the system are freed, unless M_UNIQUE_ID was specified during allocation.

Parameters

SysId (in, AIL_ID)

Specifies the identifier of the system to free.

Remarks

If you are creating a DLL that includes a call to MsysFree, ensure that the call is not made from the DllMain() function, because MsysFree might unload any DLL loaded with MsysAlloc and you cannot unload a DLL from DllMain(). If necessary, call MsysFree from a clean-up function in your DLL instead.

Copyright © 2026 Zebra Technologies.