Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the application main thread deadlock occur every time I call Stop method?

0
Posted

Why does the application main thread deadlock occur every time I call Stop method?

0

A. Stop method awaits the queue internal thread completion and that is why the deadlock may occur only if the queue internal thread has not been finished yet. This may be due to the following reasons: • You have used the code which is synchronous to the application main thread, for instance, you have called SendMessage function. This may happen on changing the application graphical elements from the queue thread. • You have used the code which is awaiting a certain event in the queue thread and at that you have used WaitForxxx functions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123