[vtkusers] Closing RenderWindow closes application

David Doria daviddoria at gmail.com
Mon Oct 25 08:34:55 EDT 2010


On Sun, Oct 24, 2010 at 10:50 PM, NathanR <nreeves at optimiser.com> wrote:

>
> I am working with windows 5.6.0 version. When I close the renderWindow, by
> either pressing q, or the X on the border, the renderWindow closes, but
> also
> causes the application to exit.
>

If you take this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere

<http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere>and add

  std::cout << "test" << std::endl;

as the last line before the return, do you see "test" printed after you
press 'q'?

Which operating system are you on? I do see "test" printed on Fedora 13 with
the git master VTK.


David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101025/cea5defc/attachment.htm>


More information about the vtkusers mailing list