Here is what I am trying to do: My partner's NPAPI plugin calls a function in my vc dll, My function displays a modal dialog and accepts user input. But after the dialog shows, firefox's plugin-hang-ui will popup after a few seconds and I have to manually close it or the NPAPI plugin will crashes after another few seconds.
HANDLE hThread - AfxBeginThread(DialogProc);//dialog diaplays in this thread
MsgWaitForMultipleObjects(1,&hThread,FALSE,INFINITE,QS_ALLINPUT);
Besides, my dialog will cause UI to hang if I set firefox as my dialog's parent window(am using getForgroundWindow()
to get the handle of firefox).
I have already tried google and I do found some similar questions(like here), but the answers of these questions didn't solve my problem.
Any help will be highly appreciated.