Skip to main content

McodeFree

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Free a code context or a code result buffer.

Syntax

void McodeFree(
AIL_ID ContextOrResultCodeId //in
)

Description

This function deletes the specified code context (and all its models) or code result buffer identifier, and releases any memory associated with it.

To only delete individual models in the context, use McodeModel with M_DELETE.

All code contexts and all code result buffers allocated on a particular system must be freed before the system can be freed, unless M_UNIQUE_ID was specified during allocation.

Parameters

ContextOrResultCodeId (in, AIL_ID)

Specifies the identifier of the code context or code result buffer to free. These must have been successfully allocated (with McodeAlloc or McodeAllocResult) prior to calling this function.

Copyright © 2026 Zebra Technologies.