监视第三方控制台应用程序没有响应 [英] Monitor Third party console application for not responding

查看:76
本文介绍了监视第三方控制台应用程序没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有控制台应用程序正在运行(第三方不是由我编写的),每次服务器出现问题时都会崩溃(我的控制也不受控制)。我正在尝试和未能编写监控控制台应用程序的应用程序。如果没有响应的杀戮&重新开始。杀戮与重启是很容易的部分,但当我尝试监控程序时,它说该过程响应好,但是Windows&表示程序已停止运行



I have console application running (Third party not written by me) which crashes everytime the server have problems (Out of my control also). I was trying & failing to write a application which monitors the Console Application & if non responsive kill & restart. The kill & restart is the easy part but when I try to monitor the program it says the process is responding Ok, but Windows & is stating the program has stopped running

Dim myProcesses() As Process
                   myProcesses = System.Diagnostics.Process.GetProcessesByName("ConsoleApplication1")
                   ' Tests the Responding property for a True return value.
                   If myProcesses(0).Responding Then
                       lbl_Status.Text = "Process is OK"
                   Else
                       ' Forces the process to close if the Responding value is False.
                       myProcesses(0).Kill()
                       System.Diagnostics.Process.Start(txt_Process.Text)
                       lbl_Status.Text = "Process is Crashed"
                   End If





我完全迷路了?



不理想,但任何理想或方向?



I am totally lost?

Not ideal but any ideal or directions?

推荐答案

订购软件开发而无需获取源代码即可被称为项目自杀。允许这样的事情发生几乎是对订购公司的犯罪。继续使用没有源代码的模块会危及产品。如果您没有对其进行逆向工程并且没有任何替代品,请考虑整个项目失败。无论花多少钱,你都应该从头开始逆向工程或开发这个模块,以获得软件的源代码。



如果继续使用这个没有源代码的产品,您只能让您的主要产品接近崩溃。你不应该解决你发布的问题,你应该修复整个事情并创建和获取源代码。请通过 virusstorm 查看该问题的评论。



-SA
Ordering software development without getting the source code can be called "project suicide". Allowing such things to happen is nearly the crime against the ordering company. Continuing to use the module without the source code endangers the product. If you not reverse engineer it and don't have any substitute, consider your whole project failed. No matter how much it costs, you should either reverse-engineer or develop this module from scratch, to have the source code of the software.

If you continue using this product without source code, you only put your main product close to collapse. You should not solve the problem you have posted, you should fix the whole thing and create and obtain the source code. Please see the comment to the question by virusstorm.

—SA


这篇关于监视第三方控制台应用程序没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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