The TChromium and GlobalCEFApp events are executed in a different thread and you shouldn't modify the interface inside them.
Sometimes you can modify some interface properties inside those events but to be safe, it's recommended to copy the parameters in a class field and then send a message to the main form to use them.
In some cases I skip this recommendation to keep the demos as simple as possible but all the demos should do it.
Copy the "aText" parameter and send a custom message to your form to update the memo contents.
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.
Get Text chromium
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get Text chromium
The StringVisitor procedure is also executed in a different thread.
If I remember correctly all visitors execute their "visit" procedure in different threads and the "Fast" classes execute their callback inside the "visit" procedure.
If I remember correctly all visitors execute their "visit" procedure in different threads and the "Fast" classes execute their callback inside the "visit" procedure.