BControlledMemoryObject

class BControlledMemoryObject

Base class for any class whose objects may have ownership passed across DLL boundaries. Allocation & deallocation need to take place in the sane DLL scope (at least on Windows), this forces it to happen within the stream DLL.

Methods

void *BControlledMemoryObject::operator new(size_t size)

force allocation to happen in the stream toolkit’s scope

void BControlledMemoryObject::operator delete(void *p)

force deallocation to happen in the stream toolkit’s scope