The problem is that i have to wait in the render process until the process message comes back. I tried following but it doesn't works (it's Delphi code, but it's not complicated)
- Code: Select all
while not FSubprocessCallbackList.Items[callId].Return do
begin
Sleep(5);
cef_do_message_loop_work;
end;
The problem is that the process message from the browser process to the render process is not recieved in the render process. I though that cef_do_message_loop_work does this but apparently not. Is there an other way to make the render process recieving the process message?
Don't ask why I'm doing this, please. I know that this is not very clean, but I have to synchronize this process messages.