Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.
On 05/29/2014 11:18 AM, fredvs wrote: > but the timer does not execute > CallvoidMethod at fptimer.ontimer... Just a guess here... To quote Sven a few mails ago: `CheckSynchronize is used to process calls to TThread.Synchronize and TThread.Queue. It *must* be called in the context of the main thread (the thread that loaded the library). TFPTimer uses Synchronize internally, [...]` But you didn't use the word `CheckSynchronize` anywhere in your mail. You need to call this method regularly in you main thread, if you don't call it, nothing will happen; you only fill up the queue that CheckSynchronize is supposed to empty. See http://www.freepascal.org/docs-html/rtl/classes/checksynchronize.html for more details on this call. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.
Hello Sven, hello Michael => many tanks. I have follow your advices... but... I have then create a object and a procedure inside that object. I use then queue() or synchronize() inside the thread to execute that procedure of object. That procedure call CallvoidMethod. OK, everything compiles but when queue() or synchronize() inside the thread is called, now, ok, no crash but CallvoidMethod is not executed... I have try also to use a fptimer(nil) (outside the thread) that uses, for ontimer, a procedure that call CallvoidMethod but, same as queue() or synchronize() inside the thread, no crash but the timer does not execute CallvoidMethod at fptimer.ontimer... PS : Im sure that CallvoidMethod is working and use the right parameters (if a call CallvoidMethod outside the thread, directly (not via fptimer.ontimer), the java method is executed.. @ Michael => of course, im hyper interested by your code Many thanks. Fred - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Java-crash-when-fpc-library-CallVoidMethod-in-a-thread-tp5719098p5719429.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] EpikTimer v1.0.1 released
On 28/05/14 09:32, Michael Schnell wrote: > In fact I do want the best possible stuff and not a fork. I am just > trying to help (as I would like to use it in the said current project). Then fork it on Github and start publishing your changes. I'll gladly review the suggestions and merge it what works. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal