Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-05

Delphi TService

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort

Does somebody have a compatible TService somewhere for dual compilation Delphi/Lazarus purposes? There is daemonapp, but that seems to be incompatible, but maybe it can be wrapped?

Reply by email

Michael Van Canneyt
to Marco van de Voort
Marco van de Voort wrote
Does somebody have a compatible TService somewhere for dual compilation Delphi/Lazarus purposes? There is daemonapp, but that seems to be incompatible, but maybe it can be wrapped?

It can be easily wrapped.
The only difference is that the registration is separate from the actual service implementation.
The usual events are there just as in TService.

Michael.

Reply by email

Bo Berglund
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Wed, 20 May 2020, Marco van de Voort wrote: > > Does somebody have a compatible TService somewhere for dual compilation > Delphi/Lazarus purposes? There is daemonapp, but that seems to be > incompatible, but maybe it can be wrapped? It can be easily wrapped. The only difference is that the registration is separate from the actual service implementation. The usual events are there just as in TService.

I think it woud be very useful if someone familiar with the inner workings of FPC/Lazarus could create the wrapper needed to port a Delphi service application using TService to fpc/lazarus, probably using TDaemon as parent or similar.

I tried it last week but wound up with Lazarus unable to start since it tries to reload the faulty project including the half/baked attempt at defining TService as a child of TDaemon....
And it ends with Lazarus unloading from memory (aka crashing)...

Bo Berglund Developer in Sweden

Reply by email