If your Windows service stops and restarts on logoff, the following is likely happening:
When you log off, your app is sent a WM_ENDSESSION and WM_CLOSE
message by Windows. If your app doesn't handle those two messages
properly it might terminate (when it should ignore them). FireDaemon Pro
should restart your app if it does get killed after you have logged off.
There are two possible solutions to the problem:
- Ask the developers of the app to explicitly handle WM_ENDSESSION and WM_CLOSE messages. We have sample code they can use.
- Run your app as a local or domain Administrator. This sometimes mitigates the logoff problem. In FireDaemon Pro you will need to go to Settings tab -> Logon section to ensure your Windows service is run by an Administrator user.