That you get current_timer->timer == nullptr most
probably means that delete_timer()
has been called before repeat_timeout() was called.
Yes, that was the cause.
This means that the control did not stay continuously
inside your callback function,
but was returned to cocoa at some point by your callback,
in contradiction to what is required to use repeat_timeout().
No, it actually meant that a stray thread on my side was calling
Fl::remove_timeout, breaking both the contract with fltk (of not
calling things outside the main thread) and breaking
Fl::repeat_timeout.
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'.