[Insight-users] debug works. release doesn't?

O'Connor, Aonghus A.OConnor at ucc.ie
Mon Jan 29 12:24:49 EST 2007


Hi all,

I have been developing an application in debug mode and it is ready to be
released. I get a debug assertion failed error in release mode for the code
example below but it works fine in debug mode. I don't know why?

Do You?!?!?

NB. I have recently installed Visual Studio SP1 patch (I don't know if this
is the cause).

Thanks,
Aonghus.


#pragma once
#include "itkVTKImageExport.h"
#include "itkImageSeriesReader.h"
#include "itkGDCMImageIO.h"
using namespace System;
namespace ItkVtkDll {
	public ref class DICOM
	{
		typedef unsigned char	PixelType;
		typedef itk::Image< PixelType, 2 >
ImageType;
		typedef itk::GDCMImageIO
ImageIOType;
		typedef itk::VTKImageExport< ImageType >
ExportType;
		
		public: DICOM()
		{
			ImageIOType::Pointer	dicomIO;
			ExportType::Pointer	ImageExport;
			ImageExport = ExportType::New();
			dicomIO = ImageIOType::New();
		}
	};
}


More information about the Insight-users mailing list