Re: GlobalCEFApp.Free hangs
Posted: Sat Oct 20, 2018 7:08 am
Hi,
You need to close all the browsers before closing your app following the "destruction sequence" described in the code comments.
Some demos have a slightly different sequence. Please read the comments from the demo that you used as a template for your application.
For example, the MiniBrowser demo do this before closing the form :
You need to close all the browsers before closing your app following the "destruction sequence" described in the code comments.
Some demos have a slightly different sequence. Please read the comments from the demo that you used as a template for your application.
For example, the MiniBrowser demo do this before closing the form :
- 1. FormCloseQuery sets CanClose to FALSE calls TChromium.CloseBrowser which triggers the TChromium.OnClose event.
- 2. TChromium.OnClose sends a CEFBROWSER_DESTROY message to destroy CEFWindowParent1 in the main thread, which triggers the TChromium.OnBeforeClose event.
- 3. TChromium.OnBeforeClose sets FCanClose := True and sends WM_CLOSE to the form.