Hi Filip,

On 2 October 2012 13:10, Filip Arlet <[email protected]> wrote:
> in my app I change during event traversal scene graph.
> I deep copy one par of graph mostly with one geode and it's drawables, but it 
> can be a transform with few geodes and add it to scene.
> using DrawThreadPerContext it will crash sometimes.
> what will I have to do ? where do I have to put DYNAMIC ? I tried putting it 
> on every drawable and stateset, but it didn't help. What I'm doing wrong, I 
> don't think I understand object variance properly, because it crashes.

Changing the scene graph during event traversal shouldn't be a problem
and shouldn't require you do set the Drawable and StateSet to DYNAMIC
unless you are modifying the contents of these objects.  The only area
that might be worth looking at is if the draw traversal is access the
parent lists of the Drawable and/or StateSet while these are being
modified by the event traversal.

There isn't anything further I can suggest bassed on so few details
about the actual crash.  Please run your application in a debugger and
get a strack trace.  Also considering using a thread debug tool.

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

Reply via email to