如何获得子程序的程序状态

编程入门 行业动态 更新时间:2024-10-10 13:16:23
本文介绍了如何获得子程序的程序状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我的主程序启动了一个隐藏在任务管理器中的子例程,因此该子例程仅作为一个进程列出.大多数时候 它可以工作,但有时会崩溃,并且我收到消息: 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!

更多推荐

如何获得子程序的程序状态

本文发布于:2023-11-28 17:45:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643359.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子程序   如何获得   状态   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!