Hi André,

On 2/15/07, André Garneau <[EMAIL PROTECTED]> wrote:
Have this crash on Windows as well.

The problem is that the stats object gets deleted while the 'h' command is
processed and there is still a pending reference to this object in the
BlockDrawCallback object. The next time this one uses its _stats object,
bang.

The declaration of the _BlockDrawCallback::_stats member variable is not a
ref_ptr. If you change the declaration to a ref_ptr it will work. I'm not
sure this is what you want in this context though, as I have not looked at
the reason the stats object gets recreated.

Most excellent, yet this all makes sense now, the only thing that
doesn't make sense is why Linux was working so robustly... when
toggling help and stats and running multi-threaded.

There two solutions I've opted for (now checked into CVS) is that the
callbacks in StatsHandler.cpp now all use ref_ptr<> as a belt and
braces measure, and secondly Viewer::setUpRenderingSupport() now reuse
any Stats objects already assigned to osg::Cameras.

Could you do a cvs update and let me know how you get on.

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to