CComHeap Class

This class implements IAtlMemMgr using the COM memory allocation functions.

class CComHeap : public IAtlMemMgr

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.

See the example for IAtlMemMgr.

Header: ATLComMem.h

Community Additions