gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 12:15:45 25 4
gpt4 key购买 nike

我将 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 消息表明您的应用程序调用了指定事件 ID 1 的 ReportEvent API。但是您尚未向事件查看器注册您的事件消息,因此它无法将事件 ID 1 转换为有意义的文本字符串。

关于Windows 服务恢复未重新启动服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1764187/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com