<br><br><div><span class="gmail_quote">On 2/5/07, <b class="gmail_sendername">tony hakki</b> &lt;<a href="mailto:tony2007vtk@yahoo.com">tony2007vtk@yahoo.com</a>&gt; wrote:</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>I need really urgent help, here is my code about pointset to image registration. I comleted ,it seems that everything ok,but when run it i gives 
<em>break</em> or <em>continue</em> error.<br>&nbsp;</div></div></div></blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div>The reason of</div><div><font size="2"><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font color="#ff0000">Unhandled exception at 0x7c812a5b in nfinity.exe: Microsoft C++ exception: itk::ExceptionObject at memory location 0x0012ea7c..
</font></font></span></p></font></div></div></div></blockquote><div><br><br>Please enclose&nbsp; the offending line in a try catch block , so you can catch the itk exceptions being thrown and print them to std::cerr. Something like...
<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; registration-&gt;StartRegistration();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; catch( itk::ExceptionObject &amp; err )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; &quot;ExceptionObject caught !&quot; &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; err &lt;&lt; std::endl;
<br>&nbsp;&nbsp;&nbsp; return EXIT_FAILURE;<br>&nbsp;&nbsp;&nbsp; } <br><br>HTH<br></div></div>-- <br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.