Hi Antony,

"Antony Tomarelli" writes:

>       root->addChild(t);
>       geode->setUserData(t);

You have a circular dependency there. Nodes Test an Geode point to each
other. At initialization time, the initialization of one triggers the
initialization of the other, and so on. This causes the stack overflow.

You can avoid that dependency since any osg::Node can retrieve is parent
node through getParent() or getParents() — that way, your user data
field is not needed anymore.

-- 
Alberto

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to