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.

exit application , then it stop worke ,error

Post Reply
mike2k
Posts: 22
Joined: Wed Jan 24, 2018 2:56 pm

Re: exit application , then it stop worke ,error

Post by mike2k »

@lyns, you need to give us more details about your application. Can you reproduce it in a demo project?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: exit application , then it stop worke ,error

Post by salvadordf »

Hi,

I updated CEF4Delphi a few hours ago. Please, test it with your application.

If you still see that error give us more details about your application and what you were doing when you saw that error.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: exit application , then it stop worke ,error

Post by salvadordf »

Yes, it's recommended to follow these steps :
  • Run Delphi.
  • Select the menu "Component" -> "Install Packages..."
  • Select CEF4Delphi from the list and click on the "Remove" button.
  • Click the "Ok" button and close Delphi.
  • Delete the old CEF4Delphi directory and decompress the new CEF4Delphi in the same place.
  • Run Delphi and follow the installation instructions available here https://www.briskbard.com/index.php?lang=en&pageid=cef
In old Delphi versions the menu may be different.

In case you still have problems with the new CEF4Delphi, please tell us what Windows and Delphi version you are using.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: exit application , then it stop worke ,error

Post by salvadordf »

Please, try the new CEF4Delphi version and use CEF binaries indicated in announcement : Make sure you copy all the files and directories in the Release and Resources directories from the CEF binaries.

You can send a link to that GIF in this forum or send it using the email addresses found in the "CONTACT" section at www.briskbard.com

Have a great time at the festival! :)
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: exit application , then it stop worke ,error

Post by salvadordf »

Hi Lyns,

I saw your GIFs and it seems that you need to follow the destruction sequence described in the "ToolBoxBrowser" demo.

The ToolBoxBrowser demo also has child forms with browsers but it waits until all the child forms are correctly closed before closing the main form.

Read the code comments in uMainForm and uChildForm :
https://github.com/salvadordf/CEF4Delph ... inForm.pas
https://github.com/salvadordf/CEF4Delph ... ldForm.pas

You need to follow this steps to destroy your child forms :

Code: Select all

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

Re: exit application , then it stop worke ,error

Post by salvadordf »

What Delphi version are you using ?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: exit application , then it stop worke ,error

Post by salvadordf »

I don't have that version but I tested the ToolBrowser in Delphi 10.2 about 30 times inside a virtual machine and in a normal Windows 7 PC.
I couldn't reproduce your error with the latest CEF4Delphi version.

Please, download the latest CEF4Delphi version from GitHub and try the ToolBrowser demo again.
https://github.com/salvadordf/CEF4Delphi

Modify the URL for the tests if necessary.
Post Reply