[vtkusers] vtkDICOMImageReader error

iskicy iskicy at gmail.com
Mon May 4 03:53:48 EDT 2009


Hello,

I am trying to read the data from a file with DICOM format. The code I have written is below:

vtkDICOMImageReader* dcm = vtkDICOMImageReader::New();
dcm->SetDirectoryName("C:/1");
dcm->SetDataByteOrderToLittleEndian();
dcm->Update();

It runs successfully on other machines with VS 2005 and VS 6.0. But when I try to run it in my computer( VS 2005 ), some error happens with blow information:

Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.


I hope someone can help me to solve this problem. 
Thanks in advance.


2009-05-04 



skicy
---------------------------
CS @ SJTU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090504/1cc7602b/attachment.htm>


More information about the vtkusers mailing list