<div>Dear All,</div>
<div> </div>
<div>I am a student trying to build a GUI to combine ITK, VTK and QT. I am using MSVC 6, SP6. I did not use CMake to configure the project, yet I used manual addition of library and header files in project settings. </div>
<div>As I am still new in this, I started by trying the program in "Getting Started II" tutorial. In the QT GUI I make a button to execute this program. I managed to compile, link and run. Yet, when the button is clicked, it doesn't perform as expected. There is a run time error message appearing, and the program aborted. While compiling, there is no error, yet there are several warnings that I appended below.
</div>
<div>I have no idea of how to deal about this.</div>
<div>I really need suggestions.</div>
<div>Thank you in advance.</div>
<div> </div>
<div>While compiling, there are several warnings as follows:</div>
<div>
<p>--------------------Configuration: Regn - Win32 Debug--------------------<br>UICing regndialog.ui...<br>Performing Custom Build Step on .\vtkQtRenderWindowInteractor.h<br>Performing Custom Build Step on .\regndialogimpl.h
<br>Compiling...<br>main.cpp<br>moc_regndialog.cpp<br>moc_regndialogimpl.cpp<br>moc_vtkQtRenderWindowInteractor.cpp<br>regndialog.cpp<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(134) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(135) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(136) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(137) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(138) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(139) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(140) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(141) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(142) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(143) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(144) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(145) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(146) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(147) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(148) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
<br>c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(150) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result<br>c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(53) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::LightObject' with /GR-; unpredictable behavior may result
<br> c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(51) : while compiling class-template member function 'class itk::SmartPointer<class itk::MutexLock> __cdecl itk::ObjectFactory<class itk::MutexLock>::Create(void)'
<br>c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(53) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::LightObject' with /GR-; unpredictable behavior may result<br> c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(51) : while compiling class-template member function 'class itk::SmartPointer<class itk::MultiThreader> __cdecl itk::ObjectFactory<class itk::MultiThreader>::Create(void)'
<br>c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(53) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::LightObject' with /GR-; unpredictable behavior may result<br> c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(51) : while compiling class-template member function 'class itk::SmartPointer<class itk::FastMutexLock> __cdecl itk::ObjectFactory<class itk::FastMutexLock>::Create(void)'
<br>c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(53) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::LightObject' with /GR-; unpredictable behavior may result<br> c:\itksource\itksrc\itkbasic\code\common\itkobjectfactory.h(51) : while compiling class-template member function 'class itk::SmartPointer<class itk::LightProcessObject> __cdecl itk::ObjectFactory<class itk::LightProcessObject>::Create(void)'
<br>c:\program files\microsoft visual studio\vc98\include\vector(156) : warning C4018: '<' : signed/unsigned mismatch<br> c:\program files\microsoft visual studio\vc98\include\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
<br>ned int &)'<br>c:\program files\microsoft visual studio\vc98\include\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> c:\program files\microsoft visual studio\vc98\include\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
<br>ned int &)'<br>c:\program files\microsoft visual studio\vc98\include\vector(156) : warning C4018: '<' : signed/unsigned mismatch<br> c:\program files\microsoft visual studio\vc98\include\vector(156) : while compiling class-template member function 'void __thiscall std::vector<long,class std::allocator<long> >::insert(long *,unsigned int,const long &)'
<br>c:\program files\microsoft visual studio\vc98\include\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> c:\program files\microsoft visual studio\vc98\include\vector(156) : while compiling class-template member function 'void __thiscall std::vector<long,class std::allocator<long> >::insert(long *,unsigned int,const long &)'
<br>vtkQtRenderWindow.cpp<br>vtkQtRenderWindowInteractor.cpp<br>Generating Code...<br>Linking...<br> Creating library Debug/Regn.lib and object Debug/Regn.exp</p>
<p>Regn.exe - 0 error(s), 24 warning(s)</p></div>