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.

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

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

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

Post 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.
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post by salvadordf »

Try closing the Devtools before closing the browser following the destruction sequence mentioned before.
Post Reply