[fpc-pascal] Reading Serial Hex Data
Jean SUZINEAU
jean.suzineau at wanadoo.fr
Mon Dec 28 14:12:02 CET 2020
Le 28/12/2020 à 13:16, Bo Berglund via fpc-pascal a écrit :
> Synchronize(CallEvent); //Supply received data in FBuffer to
> caller
You are using TThread.Synchronize.
In a console app, it's likely that somewhere else in your main thread
you'll need to call regularly Classes.CheckSynchronize to allow the
actual execution of CallEvent.
In my case, linux server dll called by a 4js 4GL console program (no GUI
on linux server), I need to call regurlarly Classes.CheckSynchronize
froml 4gl through function exported by the pascal code.
If I don't do this, the CallEvent is nether called.
More information about the fpc-pascal
mailing list