[Insight-users] Why does itkImageFileReader cause crash for vtkPolyDataReader?

Yin Yin yinyinreal at yahoo.com
Tue Feb 26 16:22:15 EST 2008


The following simple piece of code can compile on my Windows VS C++ 2003.  

#include <itkImageFileReader.h>
#include <vtkPolyDataReader.h>
bool main(int argc, char* argv[]){
 vtkPolyDataReader* pdReader = vtkPolyDataReader::New();
 pdReader->SetFileName("D:\\testdata.vtk");
 pdReader->Update();
 return true;
}

However, the generated program can only run for ITK2.8 and ITK3.0 released versions, but causes error for ITK3.2 or ITK3.4 release.  The VTK version is 5.0.  Does anyone  know why including <itkImageFileReader.h> will introduce this trouble?  Thanks in advance!

/Leo


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080226/83164140/attachment.htm


More information about the Insight-users mailing list