[Insight-users] conflict between MFC and ITK

Bill Hoffman bill.hoffman@kitware.com
Thu, 03 Apr 2003 09:33:20 -0500


Sounds like ITK is throwing an exception that you are not catching.
You should add a try catch around the update to find out what is 
going wrong.

try
{
reader->update()
}
  catch ( itk::ExceptionObject & expt )
    {
     std::cout << expt.GetDescription();
    }

-Bill

At 09:03 AM 4/3/2003, cliff macnab wrote:
>Dear Experts,
>
>   I am trying to show itkimage with MFC. In my
>program, I read image with itkimagereader. Everything
>goes well in compiling process, but there is an
>"abnormal program termination" when
>"reader->update()".  By debuging, I found there is
>conflict between win32 lib "kernel32.lib" and itk. Am
>I right? How to fix this problem? My OS is Win2000.
>
>Thanks in advance,
>
>Cliff
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - File online, calculators, forms, and more
>http://tax.yahoo.com
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users