Error Creating Debug Information - Code Won't Compile

前端 未结 19 2117
深忆病人
深忆病人 2021-02-18 15:04

I\'m using VS 2008. When ever I make a change in my code and try to compile I get the following error:

Error 7 Unexpected error creating debug informa

19条回答
  •  一整个雨季
    2021-02-18 15:22

    I changed the 'StartUp Project' of my solution to a project without reference to the locked file's project. This solved the issue for me using VS 2010 SP1.

    (Process Explorer said msvsmon.exe (started by devenv.exe) locked the pdb file. After changing the startup project the processes msvsmon.exe and .vshost.exe disappeared and so did the file handle.)

    Alex Clark, thank you for pointing me in the right direction.

提交回复
热议问题