I am not an expert at all, but may be you could mark the view for deleting
in some way (inserting a reference in a list or something else), and in a
callback when the update traversal has finished delete the views that are
marked.

Hope it helps.

Nicolas

2008/3/12, Roni Rosenzweig <[EMAIL PROTECTED]>:
>
> Hello
> I added an event handler for dynamically removing a view during the run.
> However it crashes because in CompostieViewer::eventTraversals, after the
> call to the event handler (which removes the view hence it's deleted)
> there's another usage of the view, which is already deleted (there's a call
> to the matrix manipulator).
> Is there a way to overcome this problem so that views can by removed
> during the run by an event handler?
> Roni
>
> _______________________________________________
> 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

Reply via email to