Stephen Northcott wrote:

...hoping to reference it later...
...use lots of 'news' and pointers

I guess you are using an ordinary pointer when trying to "reference it later" and then the actual object is already destroyed. If you in your code replace this ordinary pointer to be a osg::ref_ptr the object would still be there non-destroyed.

When using ref_ptr, objects hang around until all ref_ptr pointing to the object goes out of scope. Then it is automaticly deleted.

/Sebastian


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to