Also, I'm getting errors from CEF in the console, that I think might have a link with this. The first one is
[0128/155648:ERROR:renderer_main.cc(223)] Running without renderer sandbox
The second one is
[0128/155649:ERROR:singleton_hwnd.cc(44)] Cannot create windows on non-UI thread
I'm guessing it has to do with a child process not returning before I instanciate a window on my app, but I do check the return value of CefExecuteProcess and returns when the value is >= 0. If I remove the return, the result is the same.
I remember at some point I didn't have these errors anymore, but then I refactored my code again and they came back.