Object creation and destruction
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/04/2010 at 02:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Mac OSX ;
Language(s) : C++ ;---------
If I insert BaseObjects into BaseDocuments, the Document is taking over ownership of them.Can I rely on the destruction of these BaseObjects if I destruct the BaseDocument (or it goes out of scope in an AutoAlloc scenario), probably by the BaseDocument destructor?
Thanks
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/04/2010 at 06:41, xxxxxxxx wrote:
Yes, inserted BaseObjects will be destroyed along with the document. This is true for other BaseList2D objects as well (tags with objects etc.).
cheers,
Matthias