Katryn

Solution Clean is not deleting my .exe file even though it reports it as deleted. It doesn't disappear from my folder like the other files do. And if I try to rebuild before 10 minutes are up - I get a .exe is being used by another program.

This happens even though I am closing the app and disposing correctly.

Thank you for any work-arounds. This is costing me tons of lost work time.

Kat



Re: XNA Game Studio Express solution clean not deleting .exe file

Shawn Hargreaves - MSFT

That sounds like your game process isn't actually exiting cleanly. If it is still sat there running just without a visible window, the executable file will be locked on disk.

If you look in the task manager, do you see the game process still running during this 10 minute period

Does the same thing happen when you run it inside the debugger

Do other XNA games have this same problem on your machine






Re: XNA Game Studio Express solution clean not deleting .exe file

Katryn

I have dispose set on every object before it ever exits it's method/subroutine/function. So, I'm not hanging there.

I have looked in task manager and haven't seen it running so it must be almost closed out. I'm only running in debug mode at this time - as I'm trying to work through some of the complicated logic I need to have working cleanly before I test it as a -live- solution.

It's like the development environment is not letting it go. I'm using Visual Studio 2005 on an XP platform.





Re: XNA Game Studio Express solution clean not deleting .exe file

Shawn Hargreaves - MSFT

If the process isn't running in task manager (make sure you've checked that in the Processes tab as well as in Applications), then some other process must be keeping your executable file locked.

You can use Process Explorer (http://www.microsoft.com/technet/sysinternals/utilities/ProcessExplorer.mspx) to find out exactly who is keeping a lock on this file.