[vtkusers] more on vtkTkRenderWidget

Simon J. Rees sjrees at okstate.edu
Fri Oct 27 16:49:24 EDT 2000


I just compiled the nightly sources (10.26.00) on a Tru64 v5.0 system. I
have been looking at using vtkTkRenderWidget and so ran the examples that
use this class in /graphics/examplesTcl. The relevent examples are:

Decimate.tcl
InteractorDemo.tcl
TkRenderWidget.tcl
polyViewer.tcl
sphereFlake.tcl
sphereGhost.tcl
vol.tcl
volGeoDemo.tcl
volSimpleLOD.tcl
volSphereNormals.tcl

In these examples, all but Decimate.tcl, TkRenderWidget.tcl and
polyViewer.tcl have problems exiting cleanly. When the quit/exit button is
clicked the application quits but I get the message:

Generic Warning: In vtkTkRenderWidget.cxx, line 313
A TkRenderWidget is being destroyed before it associated vtkRenderWindow
is destroyed. This is very bad and usually due to the order in which objects
are being destroyed. Always destroy the vtkRenderWindow before destroying
the user interface components.

The documentation for this class is very sparse. Can anybody throw some
light on the meaning of this message? How is the order of destruction to be
controlled on exit?


Thanks,
--sjr





More information about the vtkusers mailing list