[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 14:50:03 EDT 2012


There was a mix of debug/release libraries that caused the actual crash. Thanks everybody for your help.

Mathieu

From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Sent: Thursday, July 12, 2012 2:28 PM
To: Mathieu Vadnais
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Vector Iterators Incompatible errors when using Visual Studio 9 (2008) in Release Mode (ITK 4.1.0)

There is not a limitation.

Please provide a small, compilable example (and CMakeLists.txt file) that illustrates the problem.

Thanks,

Bill
On Thu, Jul 12, 2012 at 10:22 AM, Mathieu Vadnais <mathieu.vadnais at zimmercas.com<mailto:mathieu.vadnais at zimmercas.com>> wrote:
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

_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120712/32b0cf0f/attachment.htm>


More information about the Insight-users mailing list