[vtkusers] java: deleting vtk objects
    Lars Matthäus 
    lars.matthaeus at web.de
       
    Mon Apr 20 10:34:34 EDT 2009
    
    
  
Dear all (especially the java wrapping developers),
how is the current state of releasing memory from VTK objects in Java? I
 have tried different things, but without success (in the following,
image is a vtkImageData object, but that's only as an example):
* image.ReleaseData();
* image.Delete();
* image.VTKDelete();
* nothing (waiting for the Java gc)
It seems as if some c++ call to release the memory is missing; the
object is marked as deleted (for example, a call to image.GetSpacing()
after image.Delete() leads to a crash ...), but as the process explorer
shows me, no memory is ever released.
I also found this website
http://www.kwwidgets.org/Wiki/VTK/Java_Wrapping which states that a vtk
object is never fully deleted in Java wrapping. Is that still true?
Cheers, Lars
    
    
More information about the vtkusers
mailing list