Service OnExecute fails, spawned thread is not executed

前端 未结 4 1297
情歌与酒
情歌与酒 2021-01-23 14:27

First go at starting my own service in Delphi 7. Followed the docs and made the service spawn a custom thread that beeps and logs. Only it doesn\'t. Last attempt was to put the

4条回答
  •  梦毁少年i
    2021-01-23 14:38

    The beep will not work, see this post.

    Your procedure LG is not verry robust it may fail if the log file doesn't exist. Also the service user must have the right to access the file. In a first step you can run the service with your user account for testing.

提交回复
热议问题