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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to