Page 1 of 1
Re: exit application , then it stop worke ,error
Posted: Sat Feb 10, 2018 2:18 pm
by mike2k
@lyns, you need to give us more details about your application. Can you reproduce it in a demo project?
Re: exit application , then it stop worke ,error
Posted: Sat Feb 10, 2018 7:49 pm
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.
Re: exit application , then it stop worke ,error
Posted: Sun Feb 11, 2018 8:59 am
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.
Re: exit application , then it stop worke ,error
Posted: Mon Feb 12, 2018 7:16 am
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!

Re: exit application , then it stop worke ,error
Posted: Fri Feb 16, 2018 1:15 pm
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.
Re: exit application , then it stop worke ,error
Posted: Sat Feb 17, 2018 12:54 pm
by salvadordf
What Delphi version are you using ?
Re: exit application , then it stop worke ,error
Posted: Tue Feb 20, 2018 6:47 pm
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.