TThread Synchronize creates deadlock
Posted: Mon May 17, 2021 1:38 pm
Hi,
I pass a javascript message from my sub-process to my main application with SendProcessMessage(PID_BROWSER,....)
Now when I call anything like MessageDlg or try to show a form with TThread.Synchronize or TThread.Queue it hangs, I suspect this is a deadlock.
What can I do?
And to close the browser form, should this also be in Synchronize? (when I'm in the OnProcessMessageReceived method)
I pass a javascript message from my sub-process to my main application with SendProcessMessage(PID_BROWSER,....)
Now when I call anything like MessageDlg or try to show a form with TThread.Synchronize or TThread.Queue it hangs, I suspect this is a deadlock.
What can I do?
And to close the browser form, should this also be in Synchronize? (when I'm in the OnProcessMessageReceived method)