[Insight-users] Visual Studio 2008 crash in Release Mode

Mathieu Vadnais mathieu.vadnais at zimmercas.com
Thu Jul 12 10:44:09 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/6b2ba309/attachment.htm>


More information about the Insight-users mailing list