Search code examples
formsvisual-c++setup-deployment

Visual studio deployment setup: Process not getting killed


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


Solution

  • When I close it however, it doesnot exit completely.

    This looks like a problem in your application code.

    So need to kill explicitly from taskmanager. I wrote a kill application snippet in the form's destructor.

    That's a bad idea. Your application should close gracefully. You shouldn't have to kill its process.