[vtkusers] A Question about VTK for Java: Where is the Delete method? How to free RAM?

Amy Squillacote ahs at cfdrc.com
Mon Jun 16 08:37:10 EDT 2008


Hi Oscar,

The Delete() method is wrapped in java. It's defined in vtkObjectBase, 
so you should be able to call Delete() on any VTK object you create in java.

- Amy

Oscar Javier Chavarro Garcia wrote:
> 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-
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list