[Insight-users] Vector Iterators Incompatible errors when using Visual Studio 9 (2008) in Release Mode (ITK 4.1.0)

Mathieu Vadnais mathieu.vadnais at zimmercas.com
Thu Jul 12 10:22:21 EDT 2012


Hello,

My name is Mathieu and I have come across an issue when using MetaImageIO with Visual Studio 2008 (ITK 4.1.0, 32 bits).

The three lines below result in a crash in Release Mode. I compiled with the flag _SECURE_SCL=0 but it did not change anything.

Here are the flags defined for the ITK version I compiled :
/MD /O2 /Ob2 /D NDEBUG /D _SECURE_SCL=0 /D _CRT_SECURE_NO_WARNINGS /D _SCL_SECURE_NO_WARNINGS /D _HAS_ITERATOR_DEBUGGING=0


typedef itk::Image<unsigned char, 3> ImageType;
typedef itk::ImageFileWriter< ImageType > WriterType;

itk::MetaImageIO::Pointer metaWriter = itk::MetaImageIO::New();


I would like to know if there is a way to avoid that error or if it is a known issue/limitation of ITK ?

Regards,

Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120712/17418bce/attachment.htm>


More information about the Insight-users mailing list