[osg-users] Error: 'Debug Assertion Failure!'
Gordon Tomlinson
gordon at gordon-tomlinson.com
Thu Jan 3 01:42:12 PST 2008
HI Renan
Sorry my bad, I was thinking of Vega and Vega Prime how children work there
Looking at getChildIndex it returns the size of the children array if Child
node is not found.
This seems like a subtle bug because it returns a Zero for no children, but
zero is a valid index, perhaps this function should return -1 if no
children or something as zero is clearly wrong here
Also as pointed out you need to make sure can clean up your array after you
remove a child as the pointers you have may no longer be valid etc
__________________________________________________________
Gordon Tomlinson
Email : gordon at GordonTomlinson.com
Website : www.vis-sim.com www.gordontomlinson.com
__________________________________________________________
"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
-Master Tambo Tetsura
_____
From: Renan Mendes [mailto:renanmzmendes at gmail.com]
Sent: 03 January 2008 08:58
To: gordon at gordon-tomlinson.com; OpenSceneGraph Users
Subject: [Norton AntiSpam] Re: [osg-users] Error: 'Debug Assertion Failure!'
Hi, Gordon.
I've looked up the doxygen documentation, and the second argument of
removeChild is numChildrenToRemove, which I thought stood for 'number of
children to remove'. If so, wouldn't I want 1 child to be removed? Isn't my
index correct?
Thanks,
Renan M Z Mendes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080103/8f585ed1/attachment.html
More information about the osg-users
mailing list