CefExecuteProcess doesn't return with my parameter

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.

CefExecuteProcess doesn't return with my parameter

Postby kirinbeer » Tue Nov 18, 2014 8:21 pm

I am testing CEF3 in MFC.

I downloaded CEF-MFC source code and compiled and ran OK with VS 2010.

But when I give a parameter which my original program required to this CEF-MFC test program, CefExecuteProcess doesn't return and this program is blocked there.
The parameter I used is this : --TestMode◆--StartFileNamezero37

What do I have to do to use the parameter ???
----------------------------------------

// initialize CEF.
m_cefApp = new ClientApp();

// get arguments
CefMainArgs main_args(GetModuleHandle(NULL));

CefSettings settings;
//settings.no_sandbox = TRUE;
//settings.multi_threaded_message_loop = FALSE;
settings.command_line_args_disabled = true;

// Execute the secondary process, if any.
int exit_code = CefExecuteProcess(main_args, m_cefApp.get(), NULL); // HERE
if (exit_code >= 0)
return exit_code;

// setup settings
CString szCEFCache;
CString szPath;
INT nLen = GetTempPath( 0, NULL ) + 1;
GetTempPath( nLen, szPath.GetBuffer( nLen ));
kirinbeer
Newbie
 
Posts: 2
Joined: Tue Nov 18, 2014 8:17 pm

Re: CefExecuteProcess doesn't return with my parameter

Postby magreenblatt » Tue Nov 18, 2014 11:28 pm

Looks like there's a non-ASCII character in the command-line. That could be the problem.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefExecuteProcess doesn't return with my parameter

Postby kirinbeer » Wed Nov 19, 2014 1:02 am

magreenblatt wrote:Looks like there's a non-ASCII character in the command-line. That could be the problem.



You are right ~ ^.^
I remove the Diamond and it worked. But ... Hmm ... I have to fix other program to throw away the diamond. -_-; My precious.
kirinbeer
Newbie
 
Posts: 2
Joined: Tue Nov 18, 2014 8:17 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 104 guests