| MIL 10 Reference
| Customize Help
| Save Settings

MgraFree



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
Synopsis
Free a graphics context or a graphics list.
Syntax
void MgraFree(
MIL_ID ObjectId //in
)
Description

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

If you free a graphics list that is annotating the display non-destructively (specified using MdispControl() with M_ASSOCIATED_GRAPHIC_LIST_ID), the 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 if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameter
ObjectId

Specifies the identifier of the graphics context or 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.