Hi Marcus!

> My 0.02 SEK on design of reference counting systems is that the
> preffered way is to disallow users to change the ref-count explicitly
> (i.e. encapsulate this in the well-behaved RefPtr-class, and similar
> structures) but allow them to access this for reading (so that
> deviations from expected ref-count can be checked, in case of unwanted
> cycles and such). Manual ref-counting is, from my experience, quite
> error-prone. However, I don't know if this is an option for the OpenSG
> user base, as they might be doing a lot of explicit add/sub-refs.
> 
> On a similar topic, is there some debug mechanism (existing or planned)
> to report whether all OSG-objects have been freed upon applicaiton exit
> (or before that)? Some ref-counted systems keep a global count over the
> number of live ref-counted objects at any time, and this number can be
> used to detect such errors. I kind of like being able to assert those
> kind of things.
> 

I use the FieldContainerStore to check if there are nodes not deleted on
exit. Have you tried that?

Regards
Fredrik





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to