Hi Rishabh,

The ref_ptr<> is smart pointer that will automatically manage the ref
and unref of OSG objects, and when the ref() count of these objects
goes to 0 they will be automatically deleted.  If an object is shared
then it's ref count will be 2 or more (one per reference) and will not
be deleted when you just remove one of the references, only when the
last reference is removed will it be deleted.  This is very much
correct and intended behavior.

What exactly you want for you application I can't say as you've
provide too few details.

Robert.

On 21 December 2012 11:22, Rishabh Gupta <[email protected]> wrote:
> Hi all,
>
> I am opening a new window(inherited from CWnd) from the main view window. In 
> this new window I am displaying the data, bt if i close this window and again 
> open it(while the view window was not closed),
> it still contains the data,which i was displaying earlier,though i have 
> assigned NULL to all the ref_ptr of that class holding the data.   :(
>
> A big thanx in advance for any help!!
> ...
>
> Thank you!
> :)
> Cheers,
> Rishabh
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51670#51670
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to