<div dir="ltr">Hi Brad,<div><br></div><div>Makes a lot of sense. I´m not using gcc, but latest clang versions. I´ll try to download a gcc older compiler and test. If I don´t have any success, I post here the versions I tried. </div>
<div><br></div><div>Thks,</div><div><br></div><div>Wagner</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-06 14:35 GMT-03:00 Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">What version of XCode are you using? compiler gcc vs clang? c++ library (libstdc++ or stdc++)?<div>
<br></div><div>ITK 3 is not being maintained to support the latest OSX XCode changes. I would suggest trying older versions of XCode, like the one with the genuine GNU gcc 4.2.</div><div><br></div><div>Brad</div><div><br>
<div><div><div class="h5"><div>On Jun 6, 2014, at 12:46 PM, Wagner Sales <<a href="mailto:wsales@gmail.com" target="_blank">wsales@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,<br><br>I´m doing some improvements in an application developed a couple of years ago. This application runs on Mac OS X 10.8.5 and uses ITK 3.20.1. My improvements consist in implements some image registration capabilities.<div>

<br>After implementation ( was I did and tested using a Linux system, and eventually a Windows 7 system ), when I start to test on Apple platform, a lot of crashes starts to occur on itk::ResampleImageFilter.<div><br>Of course, I first supposed problems in my code, but after a lot of try, I´ve found nothing.<br>

Then I tried to run MultiResImageRegistration3.cxx example, and crashes occurs too!<br><div>Well, after this I compiled the latest version of ITK with ITKv3 compability flag turned on, an compiled my program against this version. Works! </div>

<div><br></div><div>My question is: </div><div>Someone was found some similar problem on Mac OS? </div><div>ITK 3.20.1 depends on different compilation flags or different libs on this platform? </div><div><br></div><div>
Since the application are on a production environment today, will be more difficult start a non-planned migration against new version of ITK due the time and resources available.</div>
</div></div><div><br></div><div>Some portion of the crash:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">0   imageregistration             <span style="white-space:pre-wrap">    </span>0x00000001051cc662 itk::NearestNeighborInterpolateImageFunction<itk::Image<unsigned short, 3u>, double>::EvaluateAtContinuousIndex(itk::ContinuousIndex<double, 3u> const&) const + 146</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">1   imageregistration             <span style="white-space:pre-wrap">  </span>0x00000001051d04c0 itk::ResampleImageFilter<itk::Image<unsigned short, 3u>, itk::Image<unsigned short, 3u>, double>::LinearThreadedGenerateData(itk::ImageRegion<3u> const&, int) + 2816</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">2   imageregistration             <span style="white-space:pre-wrap">  </span>0x00000001051d138c itk::ImageSource<itk::Image<unsigned short, 3u> >::ThreaderCallback(void*) + 140</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">3   imageregistration             <span style="white-space:pre-wrap">  </span>0x0000000105286d0a itk::MultiThreader::SingleMethodExecute() + 1050</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">4   imageregistration             <span style="white-space:pre-wrap">  </span>0x00000001051cdb03 itk::ImageSource<itk::Image<unsigned short, 3u> >::GenerateData() + 131</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">5   imageregistration             <span style="white-space:pre-wrap">  </span>0x000000010529a0e0 itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 1280</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">6   imageregistration             <span style="white-space:pre-wrap">  </span>0x000000010527f73c itk::DataObject::UpdateOutputData() + 172</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

7   imageregistration             <span style="white-space:pre-wrap">   </span>0x00000001050bc571 itk::ImageBase<3u>::UpdateOutputData() + 353</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

8   imageregistration             <span style="white-space:pre-wrap">   </span>0x000000010527f2f5 itk::DataObject::Update() + 69</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">9   imageregistration             <span style="white-space:pre-wrap">        </span>0x000000010529931c itk::ProcessObject::Update() + 76</div>

</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

Thanks for any help!</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Wagner Sales</div></div></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<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div>