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.
How can i destroy the browser?
Re: How can i destroy the browser?
None of these codes work and PostMessage (Handle, WM_CLOSE, 0, 0); closes with the form
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How can i destroy the browser?
Try the demos without any modifications in your computer.
If you find any issue please tell us but if the demos work correctly then it means that there's some piece of code that was not copied to your application.
If you find any issue please tell us but if the demos work correctly then it means that there's some piece of code that was not copied to your application.
Re: How can i destroy the browser?
Please write the code of the function of destruction and release or on the button make and paste here
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How can i destroy the browser?
It's not that simple.
CEF requires you to follow several destruction steps and that's why you need to read the code comments in the demos.
The code you ask is not a single function but several calls, messages and events that you can find in the demos.
CEF requires you to follow several destruction steps and that's why you need to read the code comments in the demos.
The code you ask is not a single function but several calls, messages and events that you can find in the demos.
Re: How can i destroy the browser?
Can you just write the CODE cleanly with destruction and allocation without unnecessary overhead here with all the steps?
Re: How can i destroy the browser?
I will share my personal observations, to free up the resources of the necessary chromium instance, it is enough to send a request to Tchromium.closebrowser, and then check Tchromium.Initialized in a timer or in a separate thread, as it became = false, then you destroy TCEFWindow. After that, you can create a new TCEFWindow and initialize Chromium through Chromium.CreateBrowser