static public unsafe CefInitState Initialize() { CefWin.WriteDebugLine("cef_execute_process"); App.AddRef();//why ? need add_ref for this function? int res = cef_execute_process(MainArgs.Ptr, App.Ptr, SendBoxInfo); if (res >= 0) { return(CefInitState.SubProcess); } CefWin.WriteDebugLine("cef_initialize"); App.AddRef();//why ? need add_ref for this function? res = cef_initialize(MainArgs.Ptr, Settings.Ptr, App.Ptr, SendBoxInfo); if (res != 0) { return(CefInitState.Initialized); } return(CefInitState.Failed); }
static public void Trace(string msg) { CefWin.WriteDebugLine(" * * * " + msg); }