<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello John,<br><br>&nbsp; I'm not sure what you mean by 'install'.&nbsp;&nbsp; I built ITK using cmake. (downloaded ITK3.20.zip, Unzipped the folder, in cmake_gui version, provided teh source and build locations and hit the 'configure' button.)&nbsp; . The CMAKE flags for debug and release seem to be set fine.&nbsp; I didn't know ITK could be installed with a Windows-like installer.<br><br>Emma<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><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> Emma Ryan &lt;eryanvtk@yahoo.com&gt;<br><b><span
 style="font-weight: bold;">Cc:</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, September 3, 2010 5:19:02 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] Race condition in Write ?<br></font><br>
On Fri, Sep 3, 2010 at 7:33 PM, Emma Ryan &lt;<a ymailto="mailto:eryanvtk@yahoo.com" href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>&gt; wrote:<br>&gt; Hello All,<br>&gt;<br>&gt; &nbsp; Here's a simple program to test the read/write classes in ITK.&nbsp; It works<br>&gt; fine in Release mode (windows 7, VS 2008), but fails in Debug mode with read<br>&gt; Access violation.<br>&gt; I did not using cmake for thhis program, but externally linked it to ITK<br>&gt; libs. I suspect that the writer is experiencing a race condition. since I am<br>&gt; not familiar with the internals of ITK (multi-threading etc...), I would<br>&gt; appreciate if some one knowledgeable of ITK tries out the following program.<br>&gt;<br>&gt; Thank you,<br>&gt; Emma<br>&gt;<br>&gt;<br>&gt;<br><br>When you built ITK did you have it install? If so that is your<br>problem. You can not install if you want to use debug and release.<br>Instead when building applications point
 ITK_DIR to the root folder<br>where you built the ITK binaries in. CMake will then correctly link<br>debug libraries in debug mode and release libraries in release mode.<br>Remember in windows you can not mix debug and release libraries also<br>you must build all code from the same compiler.<br><br>John<br></div></div>
</div><br>







      </body></html>