[vtkusers] SetRenderWindow( NULL )

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Oct 14 13:22:37 EDT 2003


Hi all,

	According to:

VTK/Examples/GUI/Win32/SampleMFC/vtkMFCRenderView.cpp

or more specifically:

http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Examples/GUI/Win32/SampleMFC/vtkMFCRenderView.cpp.diff?r1=1.2&r2=1.3

On Win32, there is a *real* need to call

	vtkRenderer::SetRenderWindow( NULL )

before destroying the renderWindow.

First of all, is there any other way to achieve this ?
Second, what about classes like vtkImageViewer and vtkImageViewer2, why 
these changes hasn't been applied ?

I come from *nix world, and I would really appreciate what Win32 is 
doing that break vtk render pipeline. Or I also appreciate if someone 
could send me a small app that reproduce this bug, for some reason I can 
only reproduce it in quite large app.

Thanks a lot,
mathieu




More information about the vtkusers mailing list