Hi, 2008/12/15 Jean-Sébastien Guay <[email protected]>
> Hi Vincent, > > Sorry I could not try out your example code before you found the solution > yourself... I was totally swamped. I'm glad you found the solution though! > > To solve the problem, I set my CommandManager ref_ptr as a private member >> in my class which launch the frame loop. >> > > ... > > So now the last question is : is it normal the dragger do not store the >> commandManager in a ref_ptr ? >> > > As I understand it, the Command Manager is an application-level object > which is used to reduce coupling between the Dragger and the Selection. So > it's really up to the application to keep it alive, which is what you now > do. > > As to why it isn't stored as a ref_ptr, I'm not sure, I don't think there > would be a performance problem there... > The disturbing thing, is that the Dragger set the commandManager in a pointer (dragger->setcommandManager ) so we can assume that the command manager is well stored in memory... but no ! Without the source and a good debuguer, I would not understand that.. Vincent. > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > 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

