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?
source share