It raised error message about reference count.
To confirm this problem, I add a Sleep() in function ProcessRequest in scheme_test.cpp.
- Code: Select all
virtual bool ProcessRequest(CefRefPtr<CefRequest> request,
std::wstring& mime_type, int* response_length)
{
bool handled = false;
#if 1 //add delay here
Sleep(5000);
//PostMessage(AppGetMainHwnd(), WM_DESTROY, 0, 0);
#endif
Lock();
...
}
If closing the main window in the 5 seconds on sleep, the cef will raise the error information and then crash.
I get the similar error when using message WM_DESTROY instead of Sleep().
Only seen the error message in debug mode, shown as the attachment. Is it a bug?