Hi Andre,
On 4/6/07, André Garneau <[EMAIL PROTECTED]> wrote:
Hi Robert & "hesicong2006",
I'm unable to replicate the issue with the osgkeyboardmouse example. I've
stepped in the code and it looks like the GraphicsWindowWin32 class is
catching the window close event properly. What I suspect is that the
SimpleViewer::renderingTraversal() method is being called after the window
has been closed. If the SimpleViewer class implementation is used, this will
cause the error reported since no check is made for a closed window before
rendering.
The osgkeyboardmouse manages its own graphics window so SimpleViewer
isn't able to determine if the window is closed, its the main loop
that has to do this.
I've changed the main loop to :
while( gw->isRealized() && !exitHandler->done())
{
gw->checkEvents();
if (gw->isRealized() && !exitHandler->done())
{
viewer.frame();
// Swap Buffers
gw->swapBuffers();
}
}
The above is now checked into SVN, hopefully this will fix this issue.
Could you guys test this?
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/