Proud::CFirstHeap Class Reference

Static Public Member Functions

static PROUD_API void * Alloc (size_t size)
 
static PROUD_API void * Realloc (void *ptr, size_t size)
 
static PROUD_API void Free (void *ptr)
 
static CMemoryHeapGetHeap ()
 

Detailed Description

This is a memory heap that is owned by ProudNet. This is not 'Process Heap' at all!

  • This class is used inside of ProudNet. In the past, malloc and free used by many such as CFastArray but since this is re-defined at debug CRT and works differently in debug build. Especially when ProudNet is DLL version, malloc and free cause runtime error at msvcr90d.dll!_free_dbg therefore it is necessary to use this class.
  • However, this uses CSingleton internally. CSingleton is depended on CProcHeap, not CFirstHeap.