Thanks David,<div><br></div><div>I was trying to figure out which filter/point the error occurs.But I cannot get the &quot;gdb&quot; strack trace after crashing the applicaiton.</div><div>Here is my error output</div><div>
<br></div><div>&quot;warning: ERROR: In C:\opt\vtk\Common\/vtkDataArrayTemplate.txx, line 142</div><div>warning:</div><div><br></div><div>warning: vtkIdTypeArray (0x49346c38): Unable to allocate 15362444 elements of si</div>
<div>ze 4 bytes.</div><div>warning:</div><div><br></div><div>warning:</div><div><br></div><div><br></div><div>This application has requested the Runtime to terminate it in an unusual way.</div><div>Please contact the application&#39;s support team for more information.</div>
<div><br></div><div>Program exited with code 03.</div><div>(gdb) back</div><div>No stack.</div><div>(gdb)</div><div>&quot;</div><div><br></div><div><br></div><div>Any tips on this?</div><div><br></div><div>thanks</div><div>
<br><div class="gmail_quote">On 25 July 2011 22:34, David Partyka <span dir="ltr">&lt;<a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You&#39;re more than welcome to put try/catches in your own code or to locally modify you&#39;re VTK source tree to try and debug the issue. For the most part, VTK doesn&#39;t have many exceptions other than in a couple of places where it&#39;s absolutely necessary.<div>


<br></div><div>P.S. if you happen to have discovered a bug and come up with a fix feel free to send it to the list.</div><div><br></div><div>Thanks!<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Jul 25, 2011 at 12:43 AM, Ashika Umanga Umagiliya <span dir="ltr">&lt;<a href="mailto:aumanga@biggjapan.com" target="_blank">aumanga@biggjapan.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">any tips?<div><div></div><div><br><br><div class="gmail_quote">On 22 July 2011 18:48, Ashika Umanga Umagiliya <span dir="ltr">&lt;<a href="mailto:aumanga@biggjapan.com" target="_blank">aumanga@biggjapan.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Greetings all,</div><div><br></div><div>I use &quot;vtkVoxelContoursToSurfaceFilter&quot; to generate mesh from stack of contours.</div><div>I use chain of filters during the process. (vtkTriangleFilter,vtkSmoothPolyDataFilter,vtkDecimatePro)</div>




<div><br></div><div>But sometimes VTK crash due to memory allocation problems.Is there a way to catch the exception using &quot;try&quot; &quot;catch&quot; in VTK ?</div><div><br></div><div>Best Regards</div><div><br></div>




<div><br></div>
</blockquote></div><br>
</div></div><br></div></div>_______________________________________________<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>
</blockquote></div><br></div>