Your proposed change solved one of the problems I had at osgviewerFOX exit.
The change was in FOX_OSG_MDIView.cpp line 60
FOX_OSG_MDIView::~FOX_OSG_MDIView()
{
getApp()->removeChore(this,ID_CHORE); // added
}
Could it be added to SVN?
Now I have a hang in the same example try to exit with ESC when stats are
active. But I
start another thread on this.
Thanks!
mario
Markus Hein wrote:
> Hi Robert,
>
>
>> I don't know how you the threading model to something other than
>> SingleThreaded, as there is threading model event handler registered.
> The default osgViewer::Viewer settings should work fine.
>
> I think that problems arised for me mostly because I played with
> osgFoxViewer & multiple Viewer Windows (context's) rendering the same
> scene, instead of the Single Viewer Window in (the original
> osgFoxViewer example) .
>
> It was mostly to compare different strategies of rendering multiple
> views inside a FoxGui-Application. Something has changed since osg-2.0
> or it is because I changed the NVidia Driver version to the latest release.
>
>> I don't know if the FOX viewer was ever thread safe. It runs just
>> fine on my machine, running SingleThreaded, but still hangs on exit.
>
> based on osg-2.0 I saw no output in the console (under Linux) onExit.
> Since I updated to a OSG-SVN Version, yes I also got reported some
> problems onExit (linking FOX-1.7. I'm not working on this machine now).
>
> Even with :
>
> getApp()->removeChore(this,ID_CHORE);
>
> in FOX_OSG_MDIView::~FOX_OSG_MDIView destructor. I think this was
> important to stop execution of the onChore Event when the MDI Viewer
> Window already is closed by the user.
>
>
> thanks for reply, Markus
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
Ing. Mario Valle
Visualization Group | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS) | Tel: +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org