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.
The CEF3 code comments recommend to use GlobalCEFApp.MultiThreadedMessageLoop := False with GlobalCEFApp.ExternalMessagePump := True.
In that case we have to use the GlobalCEFApp.OnScheduleMessagePumpWork event to schedule the calls to CefDoMessageLoopWork.
The official CEF3 sample application use this event but the CEF4Delphi demos don't use it and it could be a clue of what's causing this problem.
I tried to use cef_run_message_loop instead calling cef_do_message_loop_work in timer and it's didn't help. Application crashed with the same error on exit;
Thank a lot for your help. But I can't understand how to destroy browser properly. I didn't use TCEFWindowParent. What I need to write in this function?