[vtkusers] RenderWindow question...
Charl P. Botha
c.p.botha at its.tudelft.nl
Thu Feb 27 16:14:59 EST 2003
On Thu, Feb 27, 2003 at 02:06:00PM -0600, Tuhin wrote:
> I'm having a vtkXOpenGLRenderWindow problem. It seems that when a user
> deletes the window the link between the window and VTK isn't cut.
> Specifically, vtkXOpenGLRenderWindow::Mapped is not reset and
> vtkXOpenGLRenderWindow::WindowId is not set to 0x0. Thus, when a Render()
> call is made to the window (after the user has deleted the window) I get a
> SIGPIPE. I have done a little X programming in the past and have used WM
> events (i.e. WM_DELETE_WINDOW) to tell me when my window was being destroyed.
> I looked through the VTK nightly source and I couldn't find any classes that
> used WM_DELETE_WINDOW or the call 'XSetWMProtocols' function that one uses to
> set WM event notifications.
How do you delete this window? This should be done with the Delete() method
and DEFINITELY not C++ delete. If you use the latter, you WILL run into
problems.
Also, you shouldn't use vtkXOpenGLRenderWindow directly.
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the vtkusers
mailing list