Thanks for your reply JS but my app already run in single threaded. :) After some investigation it seems to come from an observer_ptr use. Removing it fix the crash. When I'll have more time I will try to find why this observer_ptr wasn't properly cleared.
On Dec 13, 2007 3:11 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > Hello Serge, > > > I am currently getting a strange error with my app, it crash when an > object > > calls ref() because the variable _refMutex (from Referenced) is > corrupted. > > The object itself doesn't seem to be corrupted, all the other variables > are > > setted with correct values. > > > > It doesn't seems to come from a multi threaded problem, as during the > crash > > all the other thread work on tasks without any relationship. > > Anyone has ever see such a problem ? Or does it ring a bell to someone ? > > You say "it doesn't seem", but have you tested? Never assume! :-) Run > your app with the OSG_THREADING=SingleThreaded environment variable or > the --SingleThreaded command-line argument and see. If it doesn't > crash, it's threading. > > Each time I've had that problem it was either a threading problem > (normally fixed by setting the node's data variance to DYNAMIC) or > that the node itself had not been initialized (in debug mode, > _refMutex will be 0xfeeefeee or some other recognizable value for > example). > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://whitestar02.webhop.org/ > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Serge Lages http://www.tharsis-software.com
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

