Page 1 of 1

Re: App crushed after show Developer Tool A.K.A DevTool

Posted: Wed Mar 06, 2019 9:40 am
by salvadordf
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 :

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.
If you use TChromiumWindow and you still have some issues, consider using TChromium and TCEFWindowParent as described in the SimpleBrowser2 demo.

Re: App crushed after show Developer Tool A.K.A DevTool

Posted: Thu Mar 07, 2019 8:25 am
by salvadordf
Try closing the Devtools before closing the browser following the destruction sequence mentioned before.