[vtkusers] A Question about VTK for Java: Where is the Delete method? How to free RAM?
Oscar Javier Chavarro Garcia
oj.chavarro184 at uniandes.edu.co
Fri Jun 13 21:33:24 EDT 2008
Hello all.
I'm just a newbie, sorry if this question is too obvious or in the wrong list.
I'm using the marching cubes filter in Java, and the program works fine when testing small volumes. Big volumes exceeds my RAM capacity (4GB), so I made a cycle to break my volume in parts and call several times the marching cubes algorithm to obtain partial polygon meshes which I glue together later on. For the first few chunks in this process goes fine, until the program dies because of insufficient memory.
I have noticed that objects are not getting garbage-collected, no matter how I tried to decrease their reference count. I've called vtkGarbageCollector.Collect, vtkObjectBase.UnRegister, vtkObject.FastDelete in several forms with no luck. Java wrapped VTK seems to have the vtkObjectBase.Delete method missing. How do I free RAM from unused objects?
-Oscar Chavarro-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080613/39b2e09d/attachment.htm>
More information about the vtkusers
mailing list