Tag Info

New answers tagged

1

Use PostMessage() API to send commands from any thread to the thread that owns the modal dialog. It needs to be the owning (and blocking) thread that ultimately receives the command to accept/cancel the dialog so that it returns from its message pump routine. If you install the Windows debug symbols, you can see the full call stack of your blocking thread ...


2

I'm not sure the stack is your problem. It's been a while but I seem to recall common modals hanging if you access them from the wrong thread.



Top 50 recent answers are included