杀死当前的c ++程序进程 [英] Kill current c++ programm process

查看:226
本文介绍了杀死当前的c ++程序进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




因为我在尝试退出我的

程序时总是收到EAccessViolation错误,我想每次都杀掉它的进程完成它的

任务。

然后重新运行它。

有人能告诉我怎么做吗?


ief



because I always get an EAccessViolation error when i try to quit my
program, I want to kill the process of it everytime it finishes its
task.
and then rerun it.
can someone tell me how to do this ?

ief

推荐答案

X-Centric写道:
X-Centric wrote:
因为我总是当我尝试退出我的
程序时出现EAccessViolation错误,我想在每次完成其任务时终止它的过程。
然后重新运行它。


如果这是你自己的程序,并且你有错误,请修复它。


每次你推迟修复,你推降低代码的质量,以及开发过程的质量。质量越低,添加每个新功能所花费的时间就越长。这条路是不可持续的。


如果你无法修复它,从头开始重写程序,这次使用

单元测试和解耦模块。

有人可以告诉我怎么做吗?
because I always get an EAccessViolation error when i try to quit my
program, I want to kill the process of it everytime it finishes its
task.
and then rerun it.
If this is your own program, and you have a bug, fix it.

Each time you put off a fix, you push down the quality of your code, and the
quality of your development process. The lower quality gets, the longer you
will take to add each new feature. This path is not sustainable.

If you can''t fix it, rewrite the program from scratch, and this time use
unit tests and decoupled modules.
can someone tell me how to do this ?




谷歌我的街道名称和killall。
< br $> b $ b -

Phlip
http://www.c2.com/cgi/wiki?ZeekLand


我认为崩溃来自我使用的组件。

这是共享软件。

我必须编写一个程序,将程序中的一些数据转换为

新版本。

这个数据是由文件中的流编写者写的属性。

在该程序的新版本中他们使用另一个组件列出

数据,即TspSkinListview代替TlistView。

所以我不能只复制文件。

一切正常,除了我只能填写一次列表,seconc

我得到错误的时间,当我退出程序时,我得到相同的

EaccessViolation错误。

I think the crash comes from a component i used.
which is shareware.
I had to write a program which converts some data from a program to a
new version.
this data are properties written by a stream writer in a file.
in the new version of that program they use another component to list
the data, namely the TspSkinListview in stead of the TlistView.
so i can''t just copy files.
everything is working, except, I can only fill the lists once, seconc
time i get error and when I quit the program, i get the same
EaccessViolation error.


2005-06-30,X-Centric< ie*@specialfruit.be>写道:
On 2005-06-30, X-Centric <ie*@specialfruit.be> wrote:
我认为崩溃来自我使用的组件。
这是共享软件。
我必须编写一个程序,将一些数据从程序转换为在该程序的新版本中,他们使用另一个组件来列出数据,即TspSkinListview in而不是TlistView。
所以我不能只是复制文件。
一切正常,除了,我只能填写一次列表,seconc
我得到错误的时间和我退出的时候程序,我得到相同的
EaccessViolation错误。
I think the crash comes from a component i used.
which is shareware.
I had to write a program which converts some data from a program to a
new version.
this data are properties written by a stream writer in a file.
in the new version of that program they use another component to list
the data, namely the TspSkinListview in stead of the TlistView.
so i can''t just copy files.
everything is working, except, I can only fill the lists once, seconc
time i get error and when I quit the program, i get the same
EaccessViolation error.




你用调试器看过这个吗?如果你(当然在调试之后)

相信它是问题的组成部分,你能用一个非常简单的例子重现问题

,你那么可以给作者一个错误吗?


干杯,

-

Donovan Rebbechi
http://pegasus.rutgers.edu/~elflord/


这篇关于杀死当前的c ++程序进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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