[Insight-users] Re: [Insight-developers] question about itk-snap

Zhijun Zhang zjzhang at ee.cuhk.edu.hk
Mon Apr 3 08:50:59 EDT 2006


hi, karthik,

I can't open any analyze format image by using itk-snap by using menu
File->Load Data->Gray scale image, in the open file dialog, I can pass
the first "next" button, but when I click the second "next" button and
when the data is really load, this error will happen. But by using menu
File->Load previous file, I can load all of the analyze image data.
So I don't think this problem relate with data file.

When I debug into this error, the callstacks are like shown below, I think
it is related with fltk, but I really don't know how to modify this.

std::basic_string<char,std::char_traits<char>,std::allocator<char> 
 >::assign(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
{0xcdcdcdcd ""}, unsigned int 0, unsigned int 4294967295) line 122 + 46 
bytes
std::basic_string<char,std::char_traits<char>,std::allocator<char> 
 >::basic_string<char,std::char_traits<char>,std::allocator<char> >(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
{0xcdcdcdcd ""}) line 44 + 43 bytes
ImageIOWizardLogic<short>::OnSummaryPageEnter() line 921 + 26 bytes
ImageIOWizardLogic<short>::GoForward(Fl_Group * 0x0350e1c8) line 226 + 13 
bytes
ImageIOWizardLogic<short>::OnOrientationPageNext() line 687
ImageIOWizard::cb_m_BtnOrientationPageNext_i(Fl_Button * 0x0350f7a8, 
Fl_Button * 0x0350f7a8) line 5449 + 13 bytes
ImageIOWizard::cb_m_BtnOrientationPageNext(Fl_Button * 0x0350f7a8, void * 
0x00000000) line 5453
Fl_Widget::do_callback() line 187 + 24 bytes
Fl_Button::handle(int 2) line 104
send(int 2, Fl_Widget * 0x0350f7a8, Fl_Window * 0x0350bcc0) line 662 + 27 
bytes
Fl::handle(int 2, Fl_Window * 0x0350bcc0) line 752 + 17 bytes
mouse_event(Fl_Window * 0x0350bcc0, int 2, int 1, unsigned int 0, long 
20382034) line 538 + 11 bytes
WndProc(HWND__ * 0x00230cbe, unsigned int 514, unsigned int 0, long 
20382034) line 740 + 21 bytes
USER32! 77d48734()
USER32! 77d48816()
USER32! 77d489cd()
USER32! 77d496c7()
fl_wait(double 10000.000000000000) line 292
Fl::wait(double 1.0000000000000000e+020) line 289 + 13 bytes
Fl::wait() line 370 + 15 bytes
ImageIOWizardLogic<short>::DisplayInputWizard(const char * 0x00ce2460) line 
1212 + 5 bytes
UserInterfaceLogic::OnMenuLoadGrey() line 2813 + 30 bytes
UserInterface::cb_m_MenuLoadGrey_i(Fl_Menu_ * 0x034ed778, Fl_Menu_ * 
0x034ed778) line 13 + 13 bytes
UserInterface::cb_m_MenuLoadGrey(Fl_Menu_ * 0x034ed778, void * 0x00000000) 
line 17
Fl_Menu_Item::do_callback(Fl_Widget * 0x034ed778) line 133 + 24 bytes
Fl_Menu_::picked(const Fl_Menu_Item * 0x00beb0e0) line 146
Fl_Menu_Bar::handle(int 1) line 65
send(Fl_Widget * 0x034ed778, int 1) line 67 + 35 bytes
Fl_Group::handle(int 1) line 195 + 11 bytes
Fl_Window::handle(int 1) line 1014
send(int 1, Fl_Widget * 0x034f3340, Fl_Window * 0x034f3340) line 662 + 27 
bytes
Fl::handle(int 1, Fl_Window * 0x034f3340) line 700 + 17 bytes
mouse_event(Fl_Window * 0x034f3340, int 0, int 1, unsigned int 1, long 
655374) line 533 + 11 bytes
WndProc(HWND__ * 0x0082092a, unsigned int 513, unsigned int 1, long 655374) 
line 738 + 21 bytes
USER32! 77d48734()
USER32! 77d48816()
USER32! 77d489cd()
USER32! 77d496c7()
fl_wait(double 10000.000000000000) line 292
Fl::wait(double 1.0000000000000000e+020) line 289 + 13 bytes
Fl::run() line 357 + 24 bytes
main(int 1, char * * 0x0327be30) line 368
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 
0x00041f12, int 1) line 88 + 23 bytes
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c816d4f()

best regards,
Alex




----- Original Message ----- 
From: "Karthik Krishnan" <Karthik.Krishnan at kitware.com>
To: "Zhijun Zhang" <zjzhang at ee.cuhk.edu.hk>
Cc: <insight-users at itk.org>; <insight-developers at itk.org>
Sent: Monday, April 03, 2006 7:21 PM
Subject: Re: [Insight-developers] question about itk-snap


> Its hard to say anything without having access to the data. The Analyze
> file format in ITK is based on
> http://www.mayo.edu/bir/PDF/ANALYZE75.pdf
>
> Anything that differs from it, the reader should throw an exception. It
> may not be and that could be the reason for the run-time errors
>
> Could you post the data somewhere ?
>
> -karthik
>
> On Mon, 2006-04-03 at 16:27 +0800, Zhijun Zhang wrote:
>> Dear all:
>>
>>         I built Snap example in itk application package, when it runs 
>> there
>> is one error.
>> I use vc6.0, vtk5.0, itk2.6, fltk 1.1.6(or fltk115,fltk117).  The program
>> can be built without error, but when I run the
>> program, there is a runtime error with msvcp60d.dll when I try to load 
>> the
>> 3d analyze image format,
>> However it can load file with gipl format. I have installed the binary
>> version of itk-snap, it works fine
>> with this menu function. I saw the libary it uses are  msvcp71.dll. I 
>> don't
>> know whether this snap
>> source code can be build with VC6.0.  Hope somebody who has this kind of
>> experience can give a help.
>>
>> regards,
>> Alex
>>
>>
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
> 



More information about the Insight-users mailing list