Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update with bug fixes #18 and #26

User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update with bug fixes #18 and #26

Post by salvadordf »

Hi,

These are the code comments about cef_quit_message_loop and cef_run_message_loop in /include/capi/cef_app_capi.h

Code: Select all

///
// Run the CEF message loop. Use this function instead of an application-
// provided message loop to get the best balance between performance and CPU
// usage. This function should only be called on the main application thread and
// only if cef_initialize() is called with a
// CefSettings.multi_threaded_message_loop value of false (0). This function
// will block until a quit message is received by the system.
///
CEF_EXPORT void cef_run_message_loop();

///
// Quit the CEF message loop that was started by calling cef_run_message_loop().
// This function should only be called on the main application thread and only
// if cef_run_message_loop() was used.
///
CEF_EXPORT void cef_quit_message_loop();
CEF4Delphi sets GlobalCEFApp.MultiThreadedMessageLoop (CefSettings.multi_threaded_message_loop) to true by default and these functions shouldn't be used in that case.

The problems described in this thread about the browser destruction were fixed by later CEF4Delphi updates.

Please download the latest CEF4Delphi version from the repository :
https://github.com/salvadordf/CEF4Delphi
Post Reply