DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1873
Version: 1.1-current


There are some weird issues going on when fl_ask (&family) is being used.
It is possible to make an application crash when fl_ask is used in
callbacks.

I was able to track a crash down to a simple test case while debugging
another str. It crashes on OSX, but may apply to others.


Link: http://www.fltk.org/str.php?L1873
Version: 1.1-current
#include <FL/Fl.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Input_Choice.H>
#include <FL/fl_ask.H>
#include <FL/Fl_Double_Window.H>

void cb(Fl_Widget* w, void*)
{
  fl_alert("crash eXperience");
}

int main()
{
  Fl_Double_Window win(500, 300);
  Fl_Input_Choice* ich = new Fl_Input_Choice(300, 80, 100, 20, "press a key, 
followed by ESC");
  win.end();
  ich->when(FL_WHEN_NOT_CHANGED);
  ich->callback(cb);
  win.show();
  return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to