<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Have you tried running the debug-compiled program under debugger, and when it crashes looking at the call stack to see in which function/method is the crash occurring? That should give some insight into what is happening.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 11:24 AM, Khojaste, Amir <span dir="ltr"><<a href="mailto:amir.khojaste@sunnybrook.ca" target="_blank">amir.khojaste@sunnybrook.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-CA" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi guys,<u></u><u></u></p>
<p class="MsoNormal">I am using an open-source library named Plastimatch which uses the ITK libraries. I have built my Plastimatch (and also ITK) in debug mode. I am using a cropping method in Plastimach which simply crops an image. Plastimatch uses ITK libraries
to read the image. I have a labelmap image named Prostate_MR_Labelmaps.mha, this image loads in 3DSlicer (for visualization) just fine! But when I am using Plastimach to read the image and crop it (which uses ITK::ImageFileReader function) I get the following
error: <u></u><u></u></p>
<p class="MsoNormal"><b><i>Unhandled exception at 0x000000013fbb9c13 in plastimatch.exe: 0xC0000005: Access violation reading location 0xffffffffffffffff.<u></u><u></u></i></b></p>
<p class="MsoNormal">However, I also have built the Plastimatch and ITK libraries in Release mode and I did not receive this error and it read the image perfectly!<u></u><u></u></p>
<p class="MsoNormal">Are there any thoughts out there to what could be the cause of this problem?<u></u><u></u></p>
<p class="MsoNormal">I am using Windows 7, 64 bits, ITK version 3.20.2 if that helps.<u></u><u></u></p>
<p class="MsoNormal">Thanks in advance for your help!<u></u><u></u></p>
<p class="MsoNormal">Amir<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><b><i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black">This e-mail is intended only for the named recipient(s) and may contain confidential, personal and/or health
information (information which may be subject to legal restrictions on use, retention and/or disclosure). No waiver of confidence is intended by virtue of communication via the internet. Any review or distribution by anyone other than the person(s) for whom
it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and destroy all copies.</span></i></b><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>