Visual Studio 2010 Pro not ending debug mode when closing an application

When I run my code in VS, when I enter certain methods, after the debugging of the application (closing the form) is complete, VS does not end the debugging session, automatically forcing me to end it manually.

This does not always happen, the results are consistent with specific windows / classes loaded when the application starts in VS.

I want to know why this may be, I assume that it points to a file that was not closed in my managed code or something like that.

Why can this happen and how can I track and correct it?

+4
source share
2 answers

This will happen if your code will work after closing the window.

Pause the debugger after closing the window to find out what it is doing, then change the code so that it stops working when the window closes.

+4
source

On the Debug menu, click Disconnect All.

Hope this helps!

EDIT

Follow the SLak recommendations as this will go after the problem. My decision can only fix the symptom. I will leave an answer here just in case this helps you.

Good luck

0
source

Source: https://habr.com/ru/post/1389952/


All Articles