Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IW14 Indy - Running multiple services of the same executable
#6
(10-03-2019, 02:17 PM)kudzu Wrote: I dont believe the Delphi service classes are designed to provide 2 services from a single exe.

You can have multiple TService classes in the same EXE, and they are registered by default to run in separate processes when started by the SCM.

Running multiple instances of the same TService class is not "officially" supported, but that is very easy to work around by simply manipulating the TService.Name property at runtime, such as the TService.OnCreate event using command-line parameters to specify the desired name so multiple instances are registered in the SCM with different names.

Reply


Messages In This Thread
RE: IW14 Indy - Running multiple services of the same executable - by rlebeau - 10-04-2019, 05:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)