加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows服务恢复不重新启动服务

发布时间:2020-12-13 20:55:23 所属栏目:Windows 来源:网络整理
导读:我配置Windows服务的恢复,重新启动,失败后延迟一分钟。但是我从来没有得到它实际上重新启动服务(即使是最明显的错误)。 我在EventViewer中收到一条消息: The description for Event ID ( 1 ) in Source ( MyApp.exe ) cannot be found. The local compute
我配置Windows服务的恢复,重新启动,失败后延迟一分钟。但是我从来没有得到它实际上重新启动服务(即使是最明显的错误)。

我在EventViewer中收到一条消息:

The description for Event ID ( 1 ) in Source ( MyApp.exe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Access violation at address 00429874 in module ‘MyApp.exe’. Write of address 00456704.

还有什么我要做的吗?在我的代码(我使用Delphi)中有什么需要设置来启用此功能吗?

服务恢复旨在处理服务崩溃的情况 – 因此,如果您访问taskmgr并右键单击服务进程中的“结束进程”,则恢复逻辑应该启动。我不认为服务恢复逻辑启动如果您的服务正常退出(即使退出并出现错误)。

此外,eventvwr消息指示您的应用程序称为ReportEvent API,指定事件ID 1.但是您尚未使用事件查看器注册事件消息,因此它不能将事件ID 1转换为有意义的文本字符串。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读