<br><blockquote>Hi..<br><br>Before i used vtkSmartPointers itself.. Later to test i removed them.<br><br>and yes, when i iterate in a loop, i look in task bar, the memory goes on <br>increasing at each iteration.. If the data is very big, then at a particular point<br>of time, it crashes..<br><br>If this is the way, vtk caches, then, there should be some work around to solver this<br>issue.. i mean to release the unused memory..??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br>---------- Original message ----------<br>From:"John Drescher"&lt; drescherjm@gmail.com &gt;<br>Date: 7 Jul 10 20:23:41<br>Subject: Re: [vtkusers] This code gives memory leak.. Why?<br>To: Rakesh Patil &lt;rakeshthp@in.com&gt;<br><br>On Wed, Jul 7, 2010 at 10:19 AM, John Drescher &lt;drescherjm@gmail.com&gt; wrote:<br>&gt;&gt;&gt;What can i do to avoid this memory leaks.,?<br>&gt;<br>&gt; Use vtkSmartPointer<br>&gt;<br>&gt; see the examples in the wiki for usage.<br>&gt;<br>&gt; &lt;a href="http://www.
 cmake.org/Wiki/VTK/Examples/GuideLines" target="_blank"&gt;http://www.cmake.org/Wiki/VTK/Examples/GuideLines&lt;/a&gt;<br>&gt;<br><br>Actually I do not see a leak in my brief look at your code. I assume<br>you are looking at some memory status that is growing each time. Does<br>this continue if you run it for hours? Perhaps it is what vtk uses as<br>cache?<br><br>John<br></blockquote><br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>