<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Thanks for your replies.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&gt;Jothy </DIV>
<DIV>&gt;&gt;Why don't you use a if statement to find out whether the file really exists are not?<BR>&gt;&gt;The try to read it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I was using a file read as an example, for example the source could fail due to out of memory or some other condition.<BR><BR>&gt;&gt;David, I think he wants to put that logic inside the filter and the find out if it failed outside the filter.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm not looking to write my own filter.&nbsp; What I would like to know is, given a particular VTK source / filter, is it possible to know if the filter's Update method has failed or not?&nbsp; For example a filter could fail due to out of memory or some other condition, is everyone just assuming these filters will always work and not checking them for any error codes?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;think that ITK supports something like the code below, so what I can do in VTK for the equivalent functionality?</DIV>
<DIV>try</DIV>
<DIV>{</DIV>
<DIV>&nbsp; Update()</DIV>
<DIV>}</DIV>
<DIV>catch(...)</DIV>
<DIV>{</DIV>
<DIV>}</DIV></BODY></HTML>