THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/10/2008 at 10:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11
Platform:
Language(s) : C++ ;
---------
Hi,
in my code i have a pointer to a baseobject, thats inserted into the document.
Then i only do stuff with the object when that pointer is not NULL.
When I delete the object in the document, it passes the if(object!=NULL).. test and thus my code crashes...
This happens for me with R11, on R9 i have no crash with this issue..
Is there another way do detect if an object that i have a pointer to does stil exist ? or am i doing sth wrong?
EDIT:
I think i read somewhere its not so good to use global pointers anyway, so if i stored that as a link in a basecontainer, would that link become NULL, if the object was deleted from the doc ?
i think im gonna try that out now .. ;-)
thanks,
Daniel