<div>Hello,</div>
<div> </div>
<div>I am new in ITK, and I have some questions about the DICOM file reading and writing. I built a MFC project using VC++.NET and ITK.</div>
<div>All the reading and writing codes are the same as what are given by itk example "DICOMImageReadWrite".</div>
<div> </div>
<div>However, when I comliped the project, it had no error but 36 warings like follows( they fall into two classfies):</div>
<div>e:\InsightToolkit-2.4.0\Code\Common\itkEventObject.h(135) : warning C4541: 'dynamic_cast' used on polymorphic type 'itk::EventObject' with /GR-; unpredictable behavior may result</div>
<div>...</div>
<div>e:\00lyx00\InsightToolkit-2.4.0\Code\Common\itkObjectFactory.h(51) : while compiling class-template member function 'itk::MutexLock::Pointer itk::ObjectFactory<T>::Create(void)'<br> with<br> [<br>
T=itk::MutexLock::Self<br> ]<br> e:\00lyx00\InsightToolkit-2.4.0\Code\Common\itkMutexLock.h(126) : see reference to class template instantiation 'itk::ObjectFactory<T>' being compiled<br> with
<br> [<br> T=itk::MutexLock::Self<br> ]<br> </div>
<div>When I debuged the project step by step, it said "Unhandled exception at 0x77e8bbf3 in ITKFile.exe: Microsoft C++ exception: __non_rtti_object @ 0x0012ee8c." and the error message caught by itk::ExceptionObject was "Invalid output object type."
</div>
<div> </div>
<div>I will appreciate to know how to solve it.</div>
<div> </div>
<div>Thanks for your time!</div>
<div> </div>
<div>Best wishes!</div>
<div> </div>
<div>Chris Lee</div>