Browser-Independent Requests - do they work at all?
ShelleyLake opened this issue · comments
Dear Team,
I am trying to replicate the example given in
https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage.md#markdown-header-browser-independent-requests
In addition to displaying web content, I would simply like to make a browser independent GET request to a url that provides a json file as a response.
The gui is provided by the Qt framework and not by cef/chromium. Upon pressing a button, the request should be made, but I always get this message the moment the line CefRefPtr<CefURLRequest> url_request = CefURLRequest::Create(request, client.get(), nullptr);
is executed:
A breakpoint instruction (__debugbreak() statement or a similar call) was executed in TestApplication.exe.
Note that the request is made in the Browser-Thread.
If it helps, CEF is version 121, the methods "CefInitialize
" and "CefBrowserHost::CreateBrowser
" are already called, and the project is compiled correctly in Visual Studio 2019 in Release With Debug Info configuration.
The Browser is created with the following settings (probably they do not matter, since that should be a Browser Independet Request):
no_sandbox = 1;
multi_threaded_message_loop = 1;
external_message_pump = 0;
Maybe someone can give me a hint what I am doing wrong?
Thank you in advance.
J.
There are a number of reasons why this might fail. Try the the following:
- Check your log file for error messages.
- Download CEF symbols and run with a Debug build of libcef/libcef_dll_wrapper.