Share

acdbAlloc

C++

void* acdbAlloc(
    size_t
);

File

dbmain.h

Description

Used in place of malloc(), alloc(), and calloc() to allocate memory from the AcDbObject memory heap. Any memory freed by deleting an AcDbObject should be allocated from this pool.

Since these are overridden at the AcDbObject level. The preferred method is to use new and delete, so when they are used within member functions of any class derived (either directly or indirectly) from AcDbObject, the correct memory heap will be used.

Parameters

Parameters Description
unnamed Input number of bytes to allocate

Was this information helpful?