The following code gives me a segfault (using octave-2.1.72 and octaviz-cvs):
win = vtkRenderWindow();
win.Delete()
win
Note the missing semicolon in the last line (win gets printed). If the semicolon is in place everything is fine. When a vtk_object is deallocated it should probably be replaced with a empty list or something else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm actually surprised that putting a semicolon works. Anyway, you shouldn't be using Delete() (I'll remove it in the next release) since it removes the VTK object but octave variable still points to it. use
clear win
if you want to delete a VTK object.
Cheers,
Dragan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following code gives me a segfault (using octave-2.1.72 and octaviz-cvs):
win = vtkRenderWindow();
win.Delete()
win
Note the missing semicolon in the last line (win gets printed). If the semicolon is in place everything is fine. When a vtk_object is deallocated it should probably be replaced with a empty list or something else.
I'm actually surprised that putting a semicolon works. Anyway, you shouldn't be using Delete() (I'll remove it in the next release) since it removes the VTK object but octave variable still points to it. use
clear win
if you want to delete a VTK object.
Cheers,
Dragan