当用户杀死进程时会发生什么。 [英] What happens when user kills the process.

查看:69
本文介绍了当用户杀死进程时会发生什么。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys,



我想知道VC ++上调用的方法是什么,用户杀死了这个过程。



例如,在应用程序结束时,调用onclose方法。当用户杀死进程时会发生什么。



我虽然会调用主窗口的析构函数,但事情并非如此。



请建议。



问候,

Joy

解决方案

如果你的权限杀死一个进程然后所有的线程被杀了



else此后这个进程再次运行(由进程的父进程调用)

Hello Guys,

I would like to know what is the method that gets called on VC++ when, user kills the process.

For example, on close of the app, onclose method is called. What happens when user kills the process.

I though, destructor of the main window would be called, but it did not happen so.

Please suggest.

Regards,
Joy

解决方案

if your permission to kill a process then all of thread killed

else after moment this process run again(called by parent of Process)


这篇关于当用户杀死进程时会发生什么。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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