[following up on myself...]

        Hello Antonio,

Carsten Neumann wrote:
> yes, <SomeContainer>Ptr is not a reference counting pointer, if you need 
> that please use <SomeContainer>RefPtr.
> In the example the ref count of all PassiveBackgrounds remains zero all 
> the time and is never touched and since destruction only happens when 
> the ref count is decreased these object stay alive. If you add them to a 
> container and then later remove them again the ref count goes up to one 
> first and then is decreased back to zero and the object is destroyed.
> I'll have a look at the FBOViewport if there something is wrong, because 
>   your first example should not leak for exactly these reasons.

hmpf, working with OpenSG 2 all the time made me a bit optimistic on the 
reference counting stuff, it seems. Apparently there are containers that 
do not increase the ref count on pointed to objects - and as Andreas has 
written this is one of those bugs that are considered a "feature" :(

        Sorry,
                Carsten


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to