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 : [EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: 03 January 2008 08:58 To: [EMAIL PROTECTED]; 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
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

