Hey Bill,

After the Geometry is deleted the VertexArray still remains.  It will remain
until you delete/unref the object that is referencing it, or call unref on
the VertexArray from the object that is referencing it. 


Zach

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Prendergast
Sent: Friday, September 01, 2006 20:50
To: osg users
Subject: RE: [osg-users] Ref-Counted Arrays

>> The piece you are probably missing is that the VertexArray and the 
>> Geometry are two separate objects The Geometry has a ref_ptr to the 
>> VertexArray. When the Geometry is deleted, the ref_ptr to the VertexArray
will decrement the reference of the VertexArray.
>> -don

Don,

Thanks for the reply... yes, I know they are two separate (but related)
objects.

>> When the Geometry is deleted, the ref_ptr to the VertexArray will 
>> decrement the reference of the VertexArray.

And in the case I'm thinking about, the VertexArray will still remain
because I took out a SEPARATE ref_ptr to it.  Everything else about the
Geometry can be deleted, but the VertexArray will still remain.

Are there any ramifications?  Or just a VertexArray that remains until its
ref count gets to zero?

I am walking through the myriad related function (dtors) and I just figured
that someone knew if a dangling VertexArray was just that - or if it
affected anything else.

- Bill


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

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

Reply via email to