[fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

Sven Barth pascaldragon at googlemail.com
Fri May 30 14:19:33 CEST 2014


Am 30.05.2014 13:09 schrieb "fredvs" <fiens at hotmail.com>:
> Hum, so maybe, (im new in Java) use a Java-timer who calls
> uos.checksynchro(); at regular time...

If the timer event runs in the same thread as your current call to
checksynchro resides then it will work. If it's executed by a different
thread then not.

> PS3 : Hum, if one day, i need a fptimer in a fpc library, is it possible
to
> use fptimer.ontimer who works with Java ?

With your current usage of checksynchro fptimer.OnTimer should work as well
(you can't currently use it without a CheckSynchronize though).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140530/ab8a8117/attachment.html>


More information about the fpc-pascal mailing list