如何在执行期间停止正在运行的程序 [英] how to stop a running program during execution

查看:127
本文介绍了如何在执行期间停止正在运行的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个具有扫描和停止按钮的程序.按下扫描按钮时,数据将发送到硬件,并且运行良好,如果我要停止正在运行的程序却无法响应该点击,就会出现问题为什么请plz help

Am developing a program which has a scan and stop button.while scan button is pressed data is sent to the hardware and it is working well the problem comes when if i want to stop the running program it is not responding to that click why plz help

推荐答案

如果程序没有响应按钮的单击,则很可能仍在运行代码或按钮正在运行禁用的.检查您是否没有无限循环等.

另外,当程序运行并且不响应按钮单击时,您可以单击Visual Studio调试器中的暂停"按钮以暂停执行并查看发生了什么.
If the program isn''t responding to a click of a button, it''s most likely either running still the code or the button is disabled. Check that you don''t have any infinite loops etc.

Also When the program runs and doesn''t respond to the button click, you can hit the pause button in the Visual Studio debugger to halt the execution and to see what is going on.


这篇关于如何在执行期间停止正在运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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