Hi,
I am using dcef4 without using the package. I use the components TCEFChromium and TCEFWindowParent and set a form as the owner and parent of the components. I tried not assigning the OnClose and OnBeforeClose events and just close the browser at the destruction time of the form. I did not encounter problems so far. Now, I just wanted to know if this method is also ok?
Thank you for any extra information.
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.
Closing browser without waiting for CEF close messages
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Closing browser without waiting for CEF close messages
You need to follow the "destruction steps" given in the code comments of the demo you used as a template for your application. You only need to implement the TChromium.OnClose and TChromium.OnBeforeClose events.
Otherwise, your application could crash in some situations.
Otherwise, your application could crash in some situations.
Re: Closing browser without waiting for CEF close messages
Ok. Thank you for your answer.