CEF Unable to terminate process error - access is denied 0x5

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.

CEF Unable to terminate process error - access is denied 0x5

Postby lolovo » Sun Nov 27, 2016 6:03 am

Good day everyone!

Sometimes during browser closing (normal way according to DoClose comment in source code) I've got this error - [1127/130637:ERROR:process_win.cc(135)] Unable to terminate process: Access is denied. (0x5). This error occures before OnBrowserClose that never executed after this error.

Close algorithm (automated):
- when browser no more need there is close function
- close function determine if there is windowed browser or not, if windowed (there is top-level window.. CefWindow) then window->Close() otherwise browser->GetHost()->CloseBrowser(false); (all browsers in code are windowed, so window->Close() executes)
- CanClose executed in class SimpleWindowDelegate : public CefWindowDelegate. Inside of CanClose return browser->GetHost()->TryCloseBrowser().
- DoClose() executed and return false;
- CanClose executed again and return true
- sometimes but very often here error is occured - [1127/130637:ERROR:process_win.cc(135)] Unable to terminate process: Access is denied. (0x5)
- OnBeforeClose executed if there is no ^^^^ error and all references to CefBrowser deleted

What the problem can be? And also why there is an ERROR/notification that chromium-54.0.2840.90\base\message_loop\message_loop.cc is different that used in libcef.dll while debugging ? libcef.dll was taken from CEF 3.2840.1515.g1b7ab74 and chromium src was downloaded also from this build.

CEF 3.2840.1515.g1b7ab74, Win7ProSP1x64
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am

Return to Support Forum

Who is online

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