问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/6559305/passing-exceptions-to-executable-programs-to-stop-them-from-execution