Hello,
is here anybody experienced with GUI feeded by several working threads? I am developing an GUI application which shows frames received from CAN network. The frame reception is blocking function, so it is in dedicated working thread. It makes GUI repsonsive. I guess it is very common solution…
Now about problem…
The widget showing frames is cleared by button. The button throws out an event. The event stops threads, then clean widget and disables button itself. But… sometimes the widget get event from working thread, although the thread is stopped, and so show received frame just after it was cleaned.
Probably thread is stopped but the event is still in inter-thread queue (posted by wx.QueueEvent() ).
Is there way to flush out particular event type from particular event queue? And then, clean the frame showing widget?