如何获得子程序的程序状态 [英] How can I get the programmstatus of my subroutine

查看:64
本文介绍了如何获得子程序的程序状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的主程序启动了一个隐藏在任务管理器中的子例程,因此该子例程仅作为一个进程列出.大多数时候
它可以工作,但有时会崩溃,并且我收到消息:
VC_ReadDigport.exe doesn´t work anymore.(德语翻译).

是否有可能注意到该消息,所以我可以终止该进程并重新启动它.我已经尝试获取该过程的响应,但是由于它是隐藏的,因此无法正常工作.也许你们中的一个有解决方案.

谢谢!
Tom

Hi Guys,

My main program starts a subroutine which I hide in the taskmanager, so it´s only listed as a process. Most of the time
it works but sometimes it crashes and I get the message:
VC_ReadDigport.exe doesn´t work anymore. (translated from german).

Is it possible to notice that message, so I can kill the process and restart it. I already tried to get the response of the process but because it´s hidden it doesn´t work. Maybe one of you has a solution.

Thanks!
Tom

推荐答案

根据我的阅读,我建议您将应用程序重写为Windows服务.这也将在后台运行,并且仅显示在进程"列表中.维护Windows服务的状态更加容易.然后,您可以创建第二个服务(例如)来维护和检查第一个服务的状态.

此处 [ [
From what I read, i''d advice you to rewrite your application to a Windows Service. This will also run in the background and only appear in the Process list. It''s easier to maintin the status of the Windows service. You can then create a second service (for example) to maintain and check the status of the first service.

Get your kickstart right here[^].

Good Luck!


这篇关于如何获得子程序的程序状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆