<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> I'm not sure what you mean by 'install'. 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.) . The CMAKE flags for debug and release seem to be set fine. 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 <drescherjm@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Emma Ryan <eryanvtk@yahoo.com><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 <<a ymailto="mailto:eryanvtk@yahoo.com" href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>> wrote:<br>> Hello All,<br>><br>> Here's a simple program to test the read/write classes in ITK. It works<br>> fine in Release mode (windows 7, VS 2008), but fails in Debug mode with read<br>> Access violation.<br>> I did not using cmake for thhis program, but externally linked it to ITK<br>> libs. I suspect that the writer is experiencing a race condition. since I am<br>> not familiar with the internals of ITK (multi-threading etc...), I would<br>> appreciate if some one knowledgeable of ITK tries out the following program.<br>><br>> Thank you,<br>> Emma<br>><br>><br>><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>