CEF3 not closing correctly on single process mode

657 views
Skip to first unread message

Wladimir Coka

unread,
Mar 3, 2013, 9:58:35 AM3/3/13
to cef...@googlegroups.com
I start my application using single process-mode and everything works fine with these settings:

                var settings = new CefSettings();
                settings.SingleProcess = true;
                settings.MultiThreadedMessageLoop = CefRuntime.Platform == CefRuntimePlatform.Windows;
                settings.ReleaseDCheckEnabled = true;
                settings.LogSeverity = CefLogSeverity.Verbose;
                settings.LogFile = "cef.log";
                settings.ResourcesDirPath = System.IO.Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetEntryAssembly().CodeBase).LocalPath);
                settings.RemoteDebuggingPort = 20480;
 

After the main form is closed I run CefRuntime.Shutdown() but it idles undefinedly and app never closes

        public static void Shutdown()
        {
            if (!_initialized) return;

            GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
            GC.WaitForPendingFinalizers();

            libcef.shutdown();
        }


Is there any special consideration that should be consider on single-process to work correctly?

PD: If I use the app on multi-process mode all work fine (and this is how I'll use it at production), but I need single-process for some test during development and I found this problem.

Rgds,

Wladimir Coka

unread,
Mar 3, 2013, 2:25:32 PM3/3/13
to cef...@googlegroups.com
Maybe there was a problem on previous build (CEF 3.1384.1045), because I just updated to last binaries (CEF 3.1384.1102) and now all works fine.

Dmitry Azaraev

unread,
Mar 4, 2013, 5:29:19 AM3/4/13
to cef...@googlegroups.com
Hi. This is good that it is now works.
Usually errors like this means that some resources probably not closed, or internal CEF error.
Single process mode mainly used for easy debugging (even by chromium team), but this mode not officially supported. CEF trying to make this working, but some artefacts of course some times possible.


--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
   Dmitry
Reply all
Reply to author
Forward
0 new messages