Hi Pierre, I think you must be using svn/trunk rather than 3.2.1 as the Callback.cpp only exists in svn/trunk and not in the 3.2 branch :-)
You analysis of the bug and suggestion of fix looks correct to me so I've applied this change to svn/trunk and checked this in. Could you do an svn update and let me know how you get on. Thanks, Robert. On 20 June 2014 11:05, Pierre Landes <[email protected]> wrote: > Hi everyone, > > Be warned, this is a newbie question. > I am currently trying to add several update callbacks (their execution order > is irrelevant) to a same node, and all my attempts miserably failed. > I tried to rely on nested callbacks, but to no avail. > I must be missing something obvious... so any help would be more than welcome. > > I am playing with OSG-3.2.1-rc3 compiled with Visual Studio 10 on Windows 7 > (x64). > > Both the following pieces of code ends up with a stack overflow in > NodeCallback::run. :( > Thanks in advance. > > The problem seems to come from the statement in the file Callback.cpp:25 > which does not seem to delegate computation to the nested callback if present: > > Code: > if (_nestedCallback.valid()) return run(object, data); > > > > Would calling > Code: > if (_nestedCallback.valid()) return _nestedCallback->run(object, data) > > instead be enough? > > Regards. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=59829#59829 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

