<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!! </span></div><div> and I realized that I did install ITK as I built 'ALL_BUILD'.</div><div><br></div><div>Shall I disable BUILD_SHARED_LIBS and do a 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 <drescherjm@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Ryan Guan <ryan.guan@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> users itk <insight-users@itk.org> <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 <<a ymailto="mailto:ryan.guan@yahoo.com" href="mailto:ryan.guan@yahoo.com">ryan.guan@yahoo.com</a>> wrote:<br>> Hi John,<br>> Thanks a lot for your reply!<br>> I did have BUILD_SHARED_LIBS on and there are ItkCommon.dll at both Debug<br>> and Release directory. but I don't recall that I 'installed' ITK (how to do<br>> this anyway?), I just built ITK with debug and release config (VS<br>> default).<br><br>You can install by executing the INSTALL target in Visual Studio for ITK.<br><br>> What will you suggest me to do then? Should I turn off BUILD_SHARED_LIBS and<br>> rebuild ITK to try it out? It will take hours so I thought I'd better make<br>> sure that's gonna help before I do it, :-)<br>> Really appreciate!<br>><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>