<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 3:43 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Jul 6, 2011 at 10:35 AM, Xiaofeng Z <<a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a>> wrote:<br>
> That's interesting, and quite unintuitive! maybe someone with better<br>
> understanding of VTK's inner work can offer an explanation!<br>
><br>
<br>
</div>To me this looks like garbage being left over after the object was<br>
deleted. You need to look at the reference counts before the delete<br>
not after.<br>
<font color="#888888"><br>
John<br></font></blockquote><div><br></div><div>How could I avoid garbage being left over?</div><div>Would that explain that the memory usage doesn't decrease?</div><div><br></div><div>Reference counts before and after calling delete:</div>
<div>actor: 1 to -1181117928</div><div>mapper: 2 to 74658944</div><div>polydata: 3 to 0</div><div><br></div><div>I create polydata then mapper then actor.</div><div>I delete actor, then mapper, then polydata...</div><div>
<br></div><div>Thanks for your help,</div><div><br></div><div><br></div><div>Nicolas</div></div><br>