Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 11:36 AM, Giuliano Colla wrote: > Il 03/07/2018 15:14, Marcos Douglas B. Santos ha scritto: > >> Can we sleep a thread for minutes or even hours without any problems? >> The OS will not kill the thread? > > On Linux environment, sample situation on one of our servers: > >> ├

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Giuliano Colla
Il 03/07/2018 15:14, Marcos Douglas B. Santos ha scritto: Can we sleep a thread for minutes or even hours without any problems? The OS will not kill the thread? On Linux environment, sample situation on one of our servers: ├─hald───hald-runner─┬─hald-addon-acpi │ ├─hald-addon-keyb │ └─2*[hald

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marc Santhoff
On Tue, 2018-07-03 at 10:14 -0300, Marcos Douglas B. Santos wrote: > > Can we sleep a thread for minutes or even hours without any problems? > The OS will not kill the thread? > Sorry, I simply don't know. Try it. -- Marc Santhoff ___ fpc-pascal ma

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marcos Douglas B. Santos
On Mon, Jul 2, 2018 at 6:28 PM, Marc Santhoff wrote: > On Sat, 2018-06-30 at 17:57 -0300, Marcos Douglas B. Santos wrote: >> >> My question is: Nowadays, can I use TTimer with no restrictions in a >> daemon application on Windows? If not, which could be a possible >> solution? >> > > Some years ag

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marc Santhoff
On Sat, 2018-06-30 at 17:57 -0300, Marcos Douglas B. Santos wrote: > > My question is: Nowadays, can I use TTimer with no restrictions in a > daemon application on Windows? If not, which could be a possible > solution? > Some years ago Graeme G. posted a solution to that problem. It's attached t

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread R0b0t1
On Sun, Jul 1, 2018 at 8:06 AM, Marcos Douglas B. Santos wrote: > On Sat, Jun 30, 2018 at 9:13 PM, R0b0t1 wrote: >> Anyway - does TTimer use the WM_TIMER message? That is the type tied >> to the GUI. Even if you need to use WM_TIMER for some reason you can, >> as services should be run in "sessi

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sun, Jul 1, 2018 at 2:15 AM, Martin Schreiber wrote: > On Saturday 30 June 2018 22:57:47 Marcos Douglas B. Santos wrote: > >>If not, which could be a possible >> solution? >> > You could use a MSEgui application, instead of > " > uses > msegui; > " > write > " > uses > msenogui; > " > in "pro

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sat, Jun 30, 2018 at 9:13 PM, R0b0t1 wrote: > On Sat, Jun 30, 2018 at 3:57 PM, Marcos Douglas B. Santos > wrote: >> Hi, >> >> I need to build a daemon app on Windows. It will need a timer to >> performe some tasks. This timer could be big among 15 min, 30 min, 2 >> hours, etc. >> >> I thought

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread Martin Schreiber
On Saturday 30 June 2018 22:57:47 Marcos Douglas B. Santos wrote: >If not, which could be a possible > solution? > You could use a MSEgui application, instead of " uses msegui; " write " uses msenogui; " in "program" source file. It will have an event queue and the usual event driven programmin

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread R0b0t1
On Sat, Jun 30, 2018 at 3:57 PM, Marcos Douglas B. Santos wrote: > Hi, > > I need to build a daemon app on Windows. It will need a timer to > performe some tasks. This timer could be big among 15 min, 30 min, 2 > hours, etc. > > I thought that I can use TTimer but I've always heard that it's not >