by SinnerSmile » Mon Jan 13, 2014 6:55 pm
Thx for advise, I will look carefully for my globals. Tryed this IPC, it's working fine, data changing.
Yet, I still can't understand why that jprint("Something"), that I put inside method, binded to JS function in Execute(), do simply nothing.
It's working from the WM_COMMAND (as i suppose it's part of a browser process), but it uses ExecuteJavaScript();
Is it must be executed in browser process, well, cos it's executed on browser frame?
Kind of send message from render process, and on recieveng it in browser - trigger jprint()?
In wiki I can see something like this:
All code that interacts with JS must be executed on the UI thread... With CEF3 WebKit and JS execution run in a separate renderer process. The main thread in a renderer process is identified as TID_RENDERER and all V8 execution must take place on this thread.
I thought that ExecuteJavaScript() must be run in Renderer process, than why it's working in WM_COMMAND and not working in Execute(), that, as I get it, Renderer process anyway...