FLTK logo

Re: [fltk.coredev] Rare crash on repeat_timeout on macOS

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Rare crash on repeat_timeout on macOS Gonzalo Garramuño Dec 08, 2021  
 


El 8/12/21 a las 16:59, Manolo escribió:
 
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.

Thanks, Manolo.  Your advice is always helpful.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/58b0d610-c732-101c-54a5-0472c7071677%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.