HM_ExtAPI::MemoryFree()

Releases the memory allocated within other API functions.

Syntax

bool MemoryFree(
void* ptr
);

Type

HyperMesh Ext API Function

Description

The function MemoryFree must be used to release the memory allocated within the call to API functions returning arrays of values (see, for example, the function HM_ExtAPI::CurveApproximationGetData()). The function MemoryFree also must be used to free memory blocks allocated by the function HM_ExtAPI::MemoryAlloc().

If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

byte_size
[in] - The size of allocated memory block.

Errors

None.