CComHeap Class

This class implements IAtlMemMgr using the COM memory allocation functions.

class CComHeap : public IAtlMemMgr

Remarks

CComHeap implements memory allocation functions using the COM allocation functions, including CoTaskMemAlloc, CoTaskMemFree, IMalloc::GetSize, and CoTaskMemRealloc. The maximum amount of memory that can be allocated is equal to INT_MAX (2147483647) bytes.

Example

See the example for IAtlMemMgr.

Requirements

Header: ATLComMem.h

See Also

Concepts

DynamicConsumer Sample: Uses Dynamic Accessor and Schema Rowset Classes to Read Metadata from a Database

CComHeap Members

ATL Class Overview

CWin32Heap Class

CLocalHeap Class

CGlobalHeap Class

CCRTHeap Class

IAtlMemMgr Class