.vshost.exe wont stop restarting!
I'm trying to debug my project and get an error that states:
"The operation could not be completed. The process cannot access the file because it is being used by another process."
To work around this I have to close my solution, but don't have to completely close EE C# and kill the XXXX.vshost.exe process in task manager.
Does anyone know what's wrong with my project and why it won't let me debug the app more than once?
How on this earth could this solve the problem?
I deleted my debug folder and could compile.
THIS IS NOT AN ANSWER!!!!!!!
Is there a solution to this problem?
The only thing I found was that if I checked all the checkboxes under Enable Debuggers, I was able to work without seeing the error. I am not sure what it does, but it did stop the unexpected exiting of the program.
I'm looking for solutions to this problem myself. It may be a bug that needs patching, not sure.
It appears to occur when an unhandled exception is thrown by the program you are debugging. Once an exception is thrown, the program ends, and you're back in VS - the vshost process won't die until it's host, Visual Studio, also dies (ie, close the IDE and re-run it and you should be fine - I am).
If you use a try { } catch block to catch exceptions yourself, it's fine. VSHost exits when the application exits. (ie, handled exceptions don't cause this glitch - only unhandled ones)
However - it's bloody annoying... Will let you know if I find any more information.