[vtkusers] RenderWindow management, Finalize()

Charl P. Botha cpbotha at cpbotha.net
Thu Jan 25 11:07:24 EST 2007


On 1/25/07, Lars Friedrich <lfriedri at imtek.de> wrote:
> when I run the following python code with Linux (debian), I get an error
> called 'illegal instruction'. With Windows there is no problem.
>

> window.Finalize()
> del renderer
> del window

>
> What am I doing wrong? Is it right to call Finalize() before deleting

When all Python bindings disappear, the internal C++ reference counts
should also be 0 and the windows should go away by themselves.  The
Finalize() instruction just gives up all OS-resources and will be
called internally when the instances are destroyed.

What happens when you don't use Finalize()?



More information about the vtkusers mailing list