Re: App crushed after show Developer Tool A.K.A DevTool
Posted: Wed Mar 06, 2019 9:40 am
Please, check that your app follows all the destruction steps described in the demo you used as a template for your app.
All the demos have some code comments with the destruction steps but some of them might be slightly different. For example, the CustomResourceBrowser demo has these comments :
If you use TChromiumWindow and you still have some issues, consider using TChromium and TCEFWindowParent as described in the SimpleBrowser2 demo.
All the demos have some code comments with the destruction steps but some of them might be slightly different. For example, the CustomResourceBrowser demo has these comments :
Code: Select all
// Destruction steps
// =================
// 1. The FormCloseQuery event sets CanClose to False and calls TChromiumWindow.CloseBrowser, which triggers the TChromiumWindow.OnClose event.
// 2. The TChromiumWindow.OnClose event calls TChromiumWindow.DestroyChildWindow which triggers the TChromiumWindow.OnBeforeClose event.
// 3. TChromiumWindow.OnBeforeClose sets FCanClose to True and closes the form.