Called by the base class to determine the object's size, in bytes.
unsigned long retVal = object.OnGetObjectSize();
This method has no parameters.
The default implementation returns
sizeof( *this ). If the object allocates resources, the derived class should override this method to provide more accurate information. This information helps the container manage memory more accurately.