简体   繁体   English

Windows服务保持启动状态

[英]Windows Service stays in Starting state

I have a Windows service written in CPP that I start manually. 我有一个手动启动的用CPP编写的Windows服务。 The service starts up just fine and works ok. 该服务可以正常启动并且可以正常运行。 However we have recently noticed in the Windows Services GUI that the service shows in the Starting state. 但是,我们最近在Windows Services GUI中注意到该服务以“启动”状态显示。 Upon examining the Event Viewer it clearly shows that the service has entered the Running state. 检查事件查看器后,它清楚地表明该服务已进入运行状态。

Anyone got any nuggets of gold on this one? 有人在这块上有金块吗?

Thanks. 谢谢。

The problem turned out to be an unaccounted for call to the SCM to start the service. 事实证明,这是无法致电SCM启动服务的原因。 Deleted the line and the problem went away. 删除该行,问题就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM