| Customize Help
| Save Settings

MgraFree



Function Map
Synopsis
Free a 2D graphics context or a 2D graphics list.
Syntax
void MgraFree(
MIL_ID ObjectId //in
)
Description

This function deallocates a 2D graphics context or a 2D graphics list previously allocated with MgraAlloc() or MgraAllocList().

If you free a 2D graphics list that is annotating the display non-destructively (specified using MdispControl() with M_ASSOCIATED_GRAPHIC_LIST_ID), the 2D graphics list is automatically disassociated from the display.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameter
ObjectId

Specifies the identifier of the 2D graphics context or 2D graphics list to deallocate. If M_DEFAULT is specified, an error will occur.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.