You are not logged in.
Pages: 1
TService.GetControlHandler raises an exception when fControlHandler is nil, however this exception kills the service immediately, and cannot be trapped in a try/except or try/finally (I am not sure why exactly), so the exception message is never visible.
Took some time to poinpoint it with manual logs in the source ![]()
The solution can be to check the ControlHandler assignment in ServicesRun, before calling StartServiceCtrlDispatcher, as exception can be properly trapped at that point, maybe by wrapping the check in a "ValidateService" method.
Offline
Should be fixed by http://synopse.info/fossil/info/681a7ff237
Thanks for the feedback!
Offline
Thanks!
While you're at it, could you integrate service description support?
It's the ChangeServiceConfig2 stuff in my dwsWindowsService, it's just an import, a field & a call, but it makes a service look more "normal" in the service manager.
The function is supported since XP & Windows 2003, so there is probably no need to bother with an OS version check.
Offline
Pages: 1