Page 1 of 1

Re: Get Text chromium

Posted: Mon Feb 04, 2019 3:56 pm
by salvadordf
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.

Re: Get Text chromium

Posted: Mon Feb 04, 2019 4:59 pm
by salvadordf
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.