Hi Sathish,<div><br></div><div>Did you try to call vtkGlobalJavaHash.GC() instead ? If you want to call DeleteAll(), you really have to make sure that no VTK object is used inside Java anymore. What I mean is, if for some reasons some methods get called on the vtkPanel after calling deleteAll(), you are definitely in trouble. </div>
<div><br></div><div>Seb</div><div><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 2:44 AM, Sathish kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com">kingvsk@aol.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="black" size="2" face="arial"><font color="black" face="arial" size="2">

<div> Hi all,<br>
<br>
    I am using VTK with Java wrapper for constructing Dicom 3D. It works fine. But while closing the 3D window the cache memory is not released. After I found that, vtkGlobalJavaHash.DeleteAll() method should be called to destroy all vtk native objects. So i called that method within formclosed event. This works fine with windows and Mac. But with Linux it leads to jvm crash. I don&#39;t know where the problem is. Please help me on this.<br>

<br>
System Configrations:<br>
    LinuxMint - Release 10 (Julia)<br>
    Memory   - 2.0 GB<br>
    Processor- Intel Core 2 Duo<br>
    JVM        - Java(TM) SE Runtime Environment (build 1.6.0_22-b04)<br>
<br>
I added the code snippet...<br>
<br>
loadDicomdata{<br>
    // Code for Load the Dicom Images using vtkDicomImagereader...<br>
}<br>
<br>
Load3DMIP(){<br>
<br>
    // Code for construct and Display the 3D in JFrame...<br>
}<br>
<br>
private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed<br>
<b>        vtkGlobalJavaHash.DeleteAll();</b>                    // Here the Problem<br>
}<br>
<font face="Arial, Helvetica, sans-serif"><br>
</font>
</div>



<div style="clear:both"><a style="font:lighter 10px Verdana,Arial;color:rgb(0, 0, 0)"><img align="absmiddle" border="0"></a> With Regards,<br><font color="#888888">

            <br>

        Sathish Kumar V</font></div>

</font></font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>