[vtkusers] VtkPanel in java vtk bindings not being collected?
MarkHammons
mark.hammons at inaf.cnrs-gif.fr
Thu Jul 31 11:39:55 EDT 2014
Here's my code (in scala): http://pastie.org/9434555
The class above creates a simple viewing window for structuredpoints data
it's initialized with. When switching images, my program currently unhooks
the ImageViewer and disposes of any references to it. It also calls the
end() method that you see in the code. The result is the ImageViewer and a
large number of the vtk objects are cleaned up by the garbage collector
EXCEPT the opengl lights, the renderer and renderwindow, and most
confusingly of all, the vtkpane. According to visualvm's heap dump
inspection, when vtkPanel is not being collected by the garbage collector,
there is no references to it on the java side to keep it alive. Even the
parent class ImageViewer is collected.
Am I missing some special command I need to call to get VtkPanel to
deallocate properly?
--
View this message in context: http://vtk.1045678.n5.nabble.com/VtkPanel-in-java-vtk-bindings-not-being-collected-tp5728036.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list