THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/10/2007 at 08:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
---------
In the SDK-docu it should be corrected that:
BaseBitmap* bmp;
"must not" receive pointer-copies, but preferably
dgb->bmp = my_permanent_picture->GetClone();
The actual description is very confusing (I did allocate a bitmap - only not in MSG_DESCRIPTION_GETBITMAP and not a new for every call; I did ensure that the bitmap will be freed - only not in MSG_DESCRIPTION_GETBITMAP but only when the BaseBitmap-sizes change or on termination).
It took me some debugging iterations through repetitive recursive GETBITMAP-calls to get to the idea not just to pass the pointer, but to provide a copy.
Actually I don't even know if the clone gets freed, or if I loose memory every time.
Greetings