[RESOLVED] Debugging in 2010 Express
I had written an app that runs at ever login (win7). So as it is running I load 2010 Express and try to test some things, but it comes back and says
"The operation could not be completed. The Process cannot access the file because it is being used by another process."
How is that possible when the 2010 Express should be fully contained? I have even named it completely different from the originally application. Am I missing a setting?
Re: Debugging in 2010 Express
show us the line of code where that error is happening
Re: Debugging in 2010 Express
if debugging doesn't ever start how do I know what line it is? I click the little and it just goes back to green. The red stop box never lights up.
This is after I get the above error.
Re: Debugging in 2010 Express
check task manager and see if its running out of the debug or release folder. if so, kill it.
does your app use any external files that are in use?
Re: Debugging in 2010 Express
it will be in task manager because the real app is already running. All it is is a treeview that loads a directory. The very first time I start debugger it gives that error then brings up the app that is already running. Thats what I am trying to fix so I can run both at once.
Do I have to enable something to run more than once in task manager?
Re: Debugging in 2010 Express
you need to close the real app, which has the same executable as the project.
when you run in debug mode it rewrites your exe, which it can't do because you have it running
Re: Debugging in 2010 Express
But the exe's are in 2 different places. The real one is running from root of C while the one from 2010 Express is running under Project folder under another drive. It should not overwrite the real one. Even if I changed the name of the application it still doesn't work. It creates the application, it just doesn't run. is it calling the .NET framework that is already being used by the real one? VB6 use to be self contained, I could have both apps running, I never ran into this problem before.
Re: Debugging in 2010 Express
could it be also that it is in vshost? isn't that the virtual store? my exe is called AppWindow.exe, I see that is in task manager but I also see AppWindow.vshost.exe
Re: Debugging in 2010 Express
ok, I have solved this problem. In the properties of the application there is a checkbox that says: "Make single instance application" If this is checked it will of course not allow you to debug in 2010 Express. Unchecking it and closing it down, sets it so you can debug your app while it is running outside of 2010 Express. It was not vshost as that is used for debugging.