将异常传递给可执行程序,以阻止执行程序执行 [英] Passing exceptions to executable programs to stop them from execution

查看:138
本文介绍了将异常传递给可执行程序,以阻止执行程序执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在讨论过程中听到这个消息,反病毒具有通过将异常传递给它来阻止程序执行的功能。

I heard this during a discussion that anti-viruses have this feature of stopping a program from executing by passing exceptions to it.

那么如何以编程方式传递异常?

So how do you pass exceptions programmatically?

推荐答案

't通过一个例外到另一个程序。 (我至少从来没有听说过这样的术语。)

You can't "pass an exception" to another program. (I have at least never heard of any such terminology.)

大多数操作系统允许一个进程通过例​​如发送一个进程来 信号 ,但这是不同的。

Most operating systems allow one process to kill another by for instance sending it a signal, but that's different.

这篇关于将异常传递给可执行程序,以阻止执行程序执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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