[Insight-users] itk & wxWidgets

marquis2 at etu.unige.ch marquis2 at etu.unige.ch
Mon Jan 3 08:39:15 EST 2005


hello,

does anybody use wxWidgets (aka wxWindows) as multiplatform GUI environnement?
I need some help because the following code crashes (WinXP, bcc 5.5.1).

bool MyApp::OnInit() {
  typedef itk::Image< unsigned char, 2 > ImageType;
  typedef itk::ImageFileReader< ImageType > ReaderType;
  ReaderType::Pointer reader;
  reader = ReaderType::New(); /* <--------- CRASH HERE  */

  MainFrame *frame = new MainFrame();
  frame->Show(TRUE);
  return TRUE;
}

it crashes at "ReaderType::New". 
I have only the borland bcc5.5 command line tools on Windows and no debugger.

The same code works well (with bcc5.5.1 also) 
outside the WxWidgets environnement.

Any idea?

TIA
Sam


More information about the Insight-users mailing list