[vtkusers] vtkpython and vtkTk*Widget's

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Jan 25 23:28:59 EST 2003


>>>>> "WG" == William Greathouse <william.greathouse at the-greathouses.net> writes:

    WG> All, I am working with VTK (nightly) and the Python bindings.
    WG> When use the vtkTkImageViewerWidget or vtkTkRenderWidget, I
    WG> receive an error dialog when attempting to quit the running
    WG> script via a button.

    WG>   The instruction at "0xXXXXXXXX" referenced memory at
    WG> "0xXXXXXXXX". The memory could not be "read".  Click on OK to
    WG> terminate the program.

My guess is that this happens because you are deleting the Tk widget
before destroying the renderwindow.  The way to do this correctly is
to first destroy the renderwindow (via something like 'del renWin')
before you destroy the Tk widget.

cheers,
prabhu



More information about the vtkusers mailing list