Visual Studio部署设置:进程没有被杀死
我在 VC++ 中创建了一个表单应用程序并开发了一个部署设置。 当我通过 Visual Studio 运行源代码时,会弹出表格。然而,当我关闭它时,它并没有完全退出。任务管理器仍然显示进程正在运行。因此需要从任务管理器中显式终止。 我在表单的析构函数中编写了一个终止应用程序片段。通过 Visual Studio 运行后,任务管理器显示该进程已被终止并按预期工作。
现在,当我使用相同的源创建部署设置时,它无法正常工作。即使关闭表单后,任务管理器仍然显示正在运行的进程。
如果有人帮助我,我将非常感激!
提前致谢, 索拉布
I have created a form application in VC++ and developed a deployment setup.
We I run the sources through visual studio, the form pops up. When I close it however, it doesnot exit completely. The task manager still shows the process running. So need to kill explicitly from taskmanager.
I wrote a kill application snippet in the form's destructor. After running it through visual studio, the task manager shows that the process is killed and works as expected.
Now when I created the deployment setup with the same sources, it does not work well. The task manager still shows the process running even after closing the form.
I would really appreciate if someone helps me out!
Thanks in advance,
Saurabh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来像是您的应用程序代码中的问题。
这是个坏主意。您的应用程序应该正常关闭。您不必终止其进程。
This looks like a problem in your application code.
That's a bad idea. Your application should close gracefully. You shouldn't have to kill its process.