<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thank you. That seems to be the case (!!), both test executables loaded the debug DLL of ITK!!&nbsp;</span></div><div>&nbsp;and I realized that I did install ITK as I built 'ALL_BUILD'.</div><div><br></div><div>Shall I disable&nbsp;BUILD_SHARED_LIBS and do a &nbsp;re-build?</div><div><br></div><div>Curiously, how does the application build know shall it link a static lib or a DLL? does it read the ITK's configuration flag?</div><div><br></div><div>And to make sure, this will not affect the performance/speed of the code but only the size of the executable?</div><div><br></div><div><br></div><div><br></div><div><br></div>  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2"
 face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> John Drescher &lt;drescherjm@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Ryan Guan &lt;ryan.guan@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> users itk &lt;insight-users@itk.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 15, 2011 12:30 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] crash with release build - not because of uninitialized variable?<br> </font> <br>
On Wed, Dec 14, 2011 at 8:21 AM, Ryan Guan &lt;<a ymailto="mailto:ryan.guan@yahoo.com" href="mailto:ryan.guan@yahoo.com">ryan.guan@yahoo.com</a>&gt; wrote:<br>&gt; Hi John,<br>&gt; Thanks a lot for your reply!<br>&gt; I did have BUILD_SHARED_LIBS on and there are ItkCommon.dll at both Debug<br>&gt; and Release directory. but I don't recall that I 'installed' ITK (how to do<br>&gt; this anyway?), I just built ITK with &nbsp;debug and release config &nbsp;(VS<br>&gt; default).<br><br>You can install by executing the INSTALL target in Visual Studio for ITK.<br><br>&gt; What will you suggest me to do then? Should I turn off&nbsp;BUILD_SHARED_LIBS&nbsp;and<br>&gt; rebuild ITK to try it out? It will take hours so I thought I'd better make<br>&gt; sure that's gonna help before I do it, :-)<br>&gt; Really appreciate!<br>&gt;<br><br>Verify that the dlls your application is loading are the correct<br>version release dlls for a release application debug dlls for a
 debug<br>application. One way to do this is to move the release or debug dlls<br>out of the way and see if your application still finds them.<br><br>John<br><br><br> </div> </div>  </div></body></html>