<div>Hi Dongqing,</div>
<div>&nbsp;</div>
<div>I have implemented programs where I update position of vertices in a for-loop and it never crashed. Basically the Delete() method will not crash just because you iteratively change vertex positions. If your program crashes, it is because of something else. From your explanation it is not clear what is the cause of the problem. Maybe you can give more details!? Also including parts of your code that is causing the problem can be very helpful.
<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/11/07, <b class="gmail_sendername">Dongqing Chen</b> &lt;<a href="mailto:dqchen@cvip.louisville.edu">dqchen@cvip.louisville.edu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Dear All:</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp;&nbsp; I hope that I could get some help from this mail list. </font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp; Right now, I am dealing with a polydata set. During each iteration, I update all the vertices&#39; positions. Now the problem is that: if I define the polypdata (say, vtkPolypData *poly=vtkPolyData::New() ) outside the loop, the use poly-&gt;Delete() after all the iterations, the program is crash at poly-&gt;Delete(). If I define the poly data and delete it during each iteration, the program is crash at the same location. 
</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp; How to solve this problem? Thanks a lot.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Best Wishes,<br>-----------------------------------------------------------------<br>Dongqing Chen<br>Ph.D Candidate<br>Rm. 07, Paul C. Lutz Hall<br>Computer Vision &amp; Image Processing (CVIP) Lab
<br>Department of Electrical &amp; Computer Engineering<br>Speed School of Engineering<br>University of Louisville<br>Louisville, KY. 40292<br>U.S.A<br>Email: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dqchen@cvip.louisville.edu" target="_blank">
dqchen@cvip.louisville.edu</a><br>Phone:+1-502-852-2789 (Lab)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1-502-852-6130 (Office)<br>-----------------------------------------------------------------</font></div></div><br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br>