Detecting CEF termination

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.

Detecting CEF termination

Postby Baxter15 » Mon Apr 25, 2016 10:31 am

Is there a method or object that can be polled to detect abnormal CEF termination? Our application disables menu items during long-running javascript operations. In the case of an abnormal termination of CEF we need a way to detect this and re-enable the menu items.
Baxter15
Techie
 
Posts: 18
Joined: Thu Jul 16, 2015 8:51 am

Re: Detecting CEF termination

Postby magreenblatt » Mon Apr 25, 2016 11:58 am

What do you mean by "abnormal termination of CEF"?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Detecting CEF termination

Postby Baxter15 » Mon Apr 25, 2016 12:03 pm

I'm not exactly sure...are there cases where the browser can terminate unexpectedly that we would need to detect? For example, is there the ability to periodically "ping" the browser?
Baxter15
Techie
 
Posts: 18
Joined: Thu Jul 16, 2015 8:51 am

Re: Detecting CEF termination

Postby magreenblatt » Mon Apr 25, 2016 12:09 pm

CEF has multiple processes. If the main process is terminating unexpectedly then it's likely terminating your whole application. If a renderer process is terminating unexpectedly then you can implement CefRequestHandler::OnRenderProcessTerminated to (for example) reload the URL.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 22 guests