[vtkusers] memory problems with vtk+java
PerezLona
vtkitk at gmx.de
Thu Nov 19 07:56:00 EST 2009
hi,
okay i will not use Delete() when the objects are automaticaly deleted. I
know this is not a VTK question but how can i delete this cache, because
even after is my computer too slow.
thanks
PerezLona
Jeff Baumes wrote:
>
> On Wed, Nov 18, 2009 at 5:29 AM, PerezLona <vtkitk at gmx.de> wrote:
>>
>> hi,
>>
>> in my application in eclipse i read about 300 DICOM files. At first when
>> i
>> start to read, it takes about 15 sec. When i close my application and
>> start
>> it again, it takes only about 3 sec to read the files again.
>> I use at the end the Delete() methode of all my objects.
>> Is that normal? or i have to use other methode to free the memory??
>
> This may not be a memory leak. The files may be cached by the system
> since they were recently used, so the second access is much faster.
>
> You normally do not need to call Delete() on your VTK Java objects, in
> fact this could be a dangerous practice. vtkGlobalJavaHash.DeleteAll()
> can be used on exit, which will delete all your VTK objects, or at
> least attempt to.
>
> Jeff
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
View this message in context: http://old.nabble.com/memory-problems-with-vtk%2Bjava-tp26405522p26421321.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list