Share via


IMalloc::HeapMinimize (Compact 2013)

3/26/2014

This method minimizes the heap as much as possible by releasing unused memory to the operating system, coalescing adjacent free blocks and committing free pages.

Syntax

void HeapMinimize();

Parameters

None.

Return Value

None.

Remarks

Calling IMalloc::HeapMinimize is useful when an application has been running for some time and the heap may be fragmented.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header

objidl.h,
objidl.idl

Library

ole32.lib

See Also

Reference

IMalloc
IMalloc::Alloc
IMalloc::Free
IMalloc::Realloc