Converting a Delphi application to run as a service - is it necessary?

后端 未结 6 1748
醉话见心
醉话见心 2020-12-23 18:10

I have a delphi app that logs data from various places and writes the data to a file. The app has quite an extensive GUI to allow display of the data, configuration of the

6条回答
  •  没有蜡笔的小新
    2020-12-23 18:57

    You could write a simple service that starts your application. But if you care about your app future, I would go the service way. Yes, you would have to split the application in two pieces, the client/GUI part and the service itself, especially since Vista and 7 made much more difficult for a service to display a user interface for security reasons. Services have several advantages, they run in their separate session, they can be set to run with a given user that could be different from the logged-on one, only user with proper privileges can control them, Windows can automatically restart them (or perfom other actions) when they fail.

提交回复
热议问题