I need to change the Settings.cache_path at runtime.
So i made a function where i call CefShutdown(), then CefInitialize(<new_parameters>), but it crashes.
The callstack shows the crash in a RunBrowser function:
- Code: Select all
> libcef.dll!content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams main_params, bool start_minimal_browser) Line 1139
But i couldn't find it in the cef master.
But i guess this function might be in the chromium sources ? Well i'don't know.
Just to be clear, i'm using ready-to-wear binaries and downloaded the cef source only to try to see what went on with this crash, but i'm not building it.
So first, is it possible to change the settings on the fly ?
If yes, maybe there's a less brutal way than shutting down/reinitializing ?
Otherwise, any advice on how to achieve this ?
Just in case it's interesting, i've put here 3 pictures of the crash: message, callstack, and locals (there are some NULL in the main_params argument...).
https://imgur.com/a/9GExfVQ
Thanks
Cedric