> Thanks for the reply.
> I used Fl_file_chooser differently as I found it one code along with a piece
> of code for clicking cancel button and it is ok now.
> The changed code is:
> Fl_File_Chooser chooser( ".", "Image Files (*.*)",
> l_File_Chooser::SINGLE,$
> chooser.show();
>
> // block until user picks something.
> while( chooser.shown() ) { Fl::wait(); }
>
> // User hit cancel?
> if ( chooser.value() == NULL )
> { fprintf(stderr, "(User hit 'Cancel')\n"); return; }
>
> -Suja.
Interestingly, no one mentioned that file_chooser() returns NULL if
Cancel is pressed :)
I'm pretty sure this was the main reason of mentioned crash.
--
Sanel
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk