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.
André -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: April-06-07 3:11 AM To: osg users Subject: Re: [osg-users] RE: "Window not, realized; cannot do makeCurrent." Problem Hi, It sounds like GraphicsWindowWin32.cpp isn't catch the window close event. I didn't write it, nor have Windows dev machine to test against so will need others to jump in and fix it. I wrote the GraphicsWindowX11.cpp and had to jump through a few hoops to get it to catch the window close event, but this was down to an oddity in the way the X11 handle it. I wouldn't have thought it would be more straight forward under Windows, but you never know... Robert. On 4/6/07, hesicong2006 <[EMAIL PROTECTED]> wrote: > Hi,Robert Osfield. Thank your reply! > I notice this keyboardmouse example is windowed. If I click the close > icon of the window, the error messages appear. But If I press ESC key, > no error message apperas. > I think the problem occurs when rendering window is closed and the main > loop is not end, if viewer will try to render to the window, this should > be failed and error occurs. > And how can I fix this problem because a lot of my program is show in > windowed mode. > And thank all the help again! > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
