Short version: How do I do thread.Join() in a WPF app without deadlocking the UI?
During the Window_Closing() this application shuts down various threads. If the GUI calls .Join on them then the UI hangs and gets a deadlock as soon as something calls Dispatch.Invoke(). This happens when a thread tries to update the UI to indicate
it was aborted.
What I need is something like the old MsgWaitForMultipleObjects() but in WPF fashion. It is complicated by the fact that I'm not even sure it is safe or possible to process messages during a Window_Closing() event.
I'm looking for ideas...
View Complete Post