Clicking a Fl_Choice will kick off an infinite loop with the choice repeatedly incrementing and firing off repeated events. Instead of incrementing from 0 to 1, it goes to 1, 2, 3, 4, 5, 6, etc.
This behavior depends on how long my program takes to respond to the event. If my program is fast, the bug does not appear. However, if my program takes 'too long', then the Fl_Choice sends another event and it slips into the infinite loop.
I manually bisected this behavior down to this commit:
29d9e31c51e6c Consolidate timeout handling across platforms (#379) Albrecht Schlosser
The current tip of master (d8eb1f9ca46) still has this problem.
I am on MacOS.
I have not tried to duplicate this in any of the test programs - or to create a MWE. I'm hopeful that this will start a conversation and perhaps someone will see the problem with the new timeout handling code.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.