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

Post Reply
lasaranza
Posts: 23
Joined: Tue Feb 25, 2020 8:27 am

Closing browser without waiting for CEF close messages

Post by lasaranza »

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

Re: Closing browser without waiting for CEF close messages

Post by salvadordf »

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.
lasaranza
Posts: 23
Joined: Tue Feb 25, 2020 8:27 am

Re: Closing browser without waiting for CEF close messages

Post by lasaranza »

Ok. Thank you for your answer.
Post Reply