Just a thought...
"The crash is caused because _parents.end() returns an iterator whose
container pointer is NULL."
Iterator end() returns interator positioned immediately after the last
item. So if you want the the last item, you should be using something
like end()-1.
At least that's what it says in my cpp book. I don't know if OSG is
different.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, October 25, 2007 12:11 PM
To: OpenSceneGraph Users
Subject: [osg-users] Frequent crash in StateSet::removeParent
Hi... We are running OSG 2.0.0 on visual studio 2005, and we frequently
run into a crash in StateSet::removeParent. This is hit when we are
deleting nodes in the OSG thread (outside of calls to update and frame).
Is this a known issue? I am stumped on this one. I was just wondering if
it could be related to checked-iterator wierdness in VS2005, but that's
just a guess at this point. (The crash is caused because _parents.end()
returns an iterator whose container pointer is NULL.)
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org