Hi,
You can create and destroy many TChromium components while the application is running but GlobalCEFApp can only be destroyed after you have closed all your forms, preferably in the last code lines inside the DPR file.
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.
Access Violation
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Access Violation
Perhaps some destruction step is missing or incomplete.
Do you have the same error when you run the SubProcess demo ?
That demo uses a TChromiumWindow component and a different EXE for the subprocesses, like your application.
If you still have problems consider using a TChromium and a TCEFWindowParent as shown in the SimpleBrowser2 demo.
TChromiumWindow works fine but the TChromium + TCEFWindowParent combination follows the CEF destruction events to the letter.
Do you have the same error when you run the SubProcess demo ?
That demo uses a TChromiumWindow component and a different EXE for the subprocesses, like your application.
If you still have problems consider using a TChromium and a TCEFWindowParent as shown in the SimpleBrowser2 demo.
TChromiumWindow works fine but the TChromium + TCEFWindowParent combination follows the CEF destruction events to the letter.