[..] > When the user clicks the button one or more times while the function is > already running, I can get segmentation faults / assertion failures due to > statements in the function, because the previous call did not properly > terminate and clean things up. > > Ideally, I'd like the button to ignore subsequent clicks while the >function > is still being computed.
Depending on the nature of the cleanup, you may also have to think about what happens if the user exits altogether while the long running task is happening. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

