Win32 CEF Separate Sub-Process Executable question

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Win32 CEF Separate Sub-Process Executable question

Postby codelimit » Wed Mar 25, 2020 5:57 am

Good day!

I'm interested what's the correct way for implementating Separate Sub-Process Executable for Win32 for CefSimple project.

I created cefseparate.exe with the following content:

Code: Select all
#include <windows.h>
#include <include/cef_app.h>

int WINAPI wWinMain(HINSTANCE hInstance,
   HINSTANCE hPrevInstance,
   PWSTR lpCmdLine,
   int nCmdShow)
{
    CefMainArgs main_args(hInstance);
    return CefExecuteProcess(main_args, nullptr, nullptr);
}


It was build with VS2019 compiler using v142 toolset+18362 SDK with /MD flags. Also executable was set as WIN32, not console. Both Debug + Release.
It was placed next to appropriate CefSimple executable.

Also I added a parameter to CefSimple settings:
Code: Select all
CefString(&settings.browser_subprocess_path).FromASCII("cefseparate.exe");


Release build runs fine. But Debug build doesn't load URLs. What's the difference? What am I missing?

Is this thread related? https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=15670
codelimit
Techie
 
Posts: 30
Joined: Mon Nov 04, 2019 11:48 am

Re: Win32 CEF Separate Sub-Process Executable question

Postby magreenblatt » Wed Mar 25, 2020 9:34 am

browser_subprocess_path should be a fully qualified path.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 82 guests