Re: [Lazarus] TFPTimer, Linux

2014-01-20 Thread Lukasz Sokol
On 17/01/14 15:21, Antonio Fortuny wrote: Le 17/01/2014 16:02, Lukasz Sokol a écrit : Hello Antonio, Do you care (enough) to share ? :) Absolutely not: I'm just thinking that some FPC specialists over there could even enhance it. Just tell me how and where (I already have an access to

Re: [Lazarus] TFPTimer, Linux

2014-01-17 Thread Antonio Fortuny
DaemonApp works using threads. TFPTimer is not usable in threads other than the main thread. Right. So I made my own Timer based on the TFPTimer. Almost the same code except that the Synchronize(@EventProc) disapeared in my code and the EventProc is called immediately. Another little feature

Re: [Lazarus] TFPTimer, Linux

2014-01-17 Thread Lukasz Sokol
On 17/01/14 14:56, Antonio Fortuny wrote: DaemonApp works using threads. TFPTimer is not usable in threads other than the main thread. Right. So I made my own Timer based on the TFPTimer. Almost the same code except that the Synchronize(@EventProc) disapeared in my code and the EventProc

Re: [Lazarus] TFPTimer, Linux

2014-01-17 Thread Antonio Fortuny
Le 17/01/2014 16:02, Lukasz Sokol a crit: Hello Antonio, Do you care (enough) to share ? :) Absolutely not: I'm just thinking that some FPC specialists over there could even enhance it. Just tell me how and where (I already have an access

[Lazarus] TFPTimer, Linux

2014-01-15 Thread Antonio Fortuny
Hi Folks. Following a Michael advice I changed a TTimer by an TFPTime component in a Linux daemon application but the latter doesn't work. There is the code snippet of the TFPTime OnTimer event: procedure TDaemon1.ThreadControlTimerTimer(Sender: TObject); var Res: Boolean; begin // se

Re: [Lazarus] TFPTimer, Linux

2014-01-15 Thread Michael Van Canneyt
On Wed, 15 Jan 2014, Antonio Fortuny wrote: Hi Folks. Following a Michael advice I changed a TTimer by an TFPTime component in a Linux daemon application but the latter doesn't work. There is the code snippet of the TFPTime OnTimer event: procedure TDaemon1.ThreadControlTimerTimer(Sender: