<div dir="ltr">Kent,<div><br></div><div>Thanks adding the two output images.</div><div><br></div><div>One of the main differences between Debug and Release builds,</div><div>is that in Debug mode, the compiler tends to initialize variables.</div>
<div><br></div><div>It may be the case here, that the code has an uninitialized variable, </div><div>and the compiler is setting it to zero in Debug mode, while leaving</div><div>it uninitialized in Release mode.</div><div>
<br></div><div><br></div><div>Just an idea....</div><div><br></div><div><br></div><div> Luis</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 31, 2013 at 3:04 PM, Kent Ogden <span dir="ltr"><<a href="mailto:ogdenk@upstate.edu" target="_blank">ogdenk@upstate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="FONT:10pt Segoe UI;MARGIN:4px 4px 1px">
<div>John,</div>
<div> </div>
<div>Thanks for that, it works now. What I actually did was to leave my system path set to point to the release dll's, and put the debug dll's into the debug build directory for the project. I have usually used static ITK/VTK builds so maybe that's why I haven't seen this before.</div>
<div> </div>
<div>Interestingly, the output of the Quickview demo is different for the debug and release versions. I didn't use a command line argument so the CreateImage function gets called, attached are the outputs for the debug and release versions of the program. Not sure why this happens, I would think the Allocate() function would initialize the pixel data the same way for debug and release.</div>
<div> </div>
<div>Kent</div>
<div> </div>
<div><br><br>>>> John Drescher <<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>> 12/31/2013 11:30 AM >>><div class="im"><br>On Tue, Dec 31, 2013 at 11:16 AM, Kent Ogden <<a href="mailto:ogdenk@upstate.edu" target="_blank">ogdenk@upstate.edu</a>> wrote:<br>
> Hi,<br>><br>> I have downloaded the new ITK release and built it using VS 2012 on Win7 64<br>> bit. I have already downloaded and built VTK. I build ITK and VTK with<br>> Shared libraries on, and ITKVTKGlue enabled in ITK. I also have TCL<br>
> wrapping turned on for VTK, but no wrapping in ITK.<br>><br>> If I try something simple, such as the Quickview example, it will build and<br>> run ok in release mode. If I try running anything in debug mode, it will<br>
> crash at the first filter/reader Update() call with an access violation.<br>><br>> Any thoughts on what I may be doing wrong?<br>><br><br>Do not use the INSTALL target if you want to use debug and release<br>
configurations. Instead just build all. And when you configure your<br>CMake generated project for your application set the ITK_DIR and<br>VTK_DIR to be the root folder of the build tree. Since you built dlls<br>you will have to copy these to your applications debug and release<br>
folder.<br><br>John<br></div></div></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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>