When I compile the project,it also display:cannot open Debug/dm.exe for writing,but in the task manager I don't find the process dm.exe,so I cann't end the process.How to solve this problem?
When I compile the project,it also display:cannot open Debug/dm.exe for writing,but in the task manager I don't find the process dm.exe,so I cann't end the process.How to solve this problem?
Does the file exist in that directory?
Is it read-only perhaps?
I assume this is for MSVS. Close MSVS. If it won't close then go to Task Manager and view processes. End the devenv.exe process. Now open MSVS back up and it should compile. What happens in multi-threaded builds is one or more threads locks the exe file and never unlock it when they finish. This is a known bug in 2008 and although SP1 claimed to fix it I still ran into it frequently. I have not encountered this in MSVS 2010 so perhaps they actually fixed it in that version.
In MSVS 2005 you could disable threaded builds which was handy b/c 2005 was the first to offer this and it was very buggy as well. I'm not sure if you can turn this off or limit the number of independent compiler threads in 2008.
I use VC6,you mean it is bug?
VC6 should not have this problem since it does not support multi-threaded compilation and linking. Ensure the file is not marked read only. If you have submitted the exe to source control it will mark it as read-only. You shouldn't be submitting binaries to source control in the first place but thought I would mention it.