On Fri Sep 22 19:45:07 2023 +0000, Esme Povirk wrote:
When can this happen?
I haven't seen it happen in practice, but in theory:
- `uia_stop_event_thread()` is called and sets the the thread reference count to 0. - This clears the `event_thread` structure and posts `WM_UIA_EVENT_THREAD_STOP` to the event thread's message queue. - WinEvents are still in the queue and need to be processed before `WM_UIA_EVENT_THREAD_STOP` is encountered. In this case, these will need to be discarded.