|
|
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.
>
> On Jul 13, 2007, at 8:00 AM, Suja wrote:
>
> > Pressing cancel on the file chooser window makes the program crash.
> > Could someone help me making the code not crashing, but just
> > returning to original Gui?
> > char* *fl_file_chooser(const char *message,const char
> > *pattern,const char *fname, int relative = 0);
> > char* chooserName = fl_file_chooser("Pick reference file to
> > load","*.*",0,0);
> >
> > I use fltk 1.1.7.
>
> FLTK 1.1.7 is very stable and I did not get the fil chooser to crash
> in at least a years worth of testing. It is probably something in
> your code somewhere else.
>
> But I'll be happy to help you out if it is an FLTK issue. What I need
> from you is a short, but complete pice of source code (one page),
> that compiles by itself, and a precise description how you make that
> program crash.
>
> Matthias
>
>
> ----
> http://robowerk.com/
>
>
[ Direct Link to Message ] | |
|
| |