Hi folks, // OSG 3.0.1
I currently observe, that my userData instances (derived from osg::Referenced) are not dereferenced, if I delete the carrying node instance. The ref counter in myUserData instance gets incremented by calling node->setUserData(myUserData). But if delete the node (by calling parent->removeChildren(0,childCount)), the ref counter remains as is. Is this behavior intended (cannot imagine that)? The same is observed, if using osg::UserDataContainer. I would expect the ref counter be decremented, if the carrying node has been deleted. And the userData instance deleted (on ref_count==0). Do I something wrong? Thank you! Cheers, Alexej ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47712#47712 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

