Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error LNK1201: error writing to program database - Visual Studio 2003

I get this error: fatal error LNK1201: error writing to program database every time I edit my code and build again in visual studio 2003.

The issue is resolved if I restart VS2003 but I need to do this every time i build the project.

I have been googling and stackoverflowing ;) for a few hours and have tried the following proposed solution:

  1. Change the Debug Information Format from Zi to Z7. (Property -> C/C++ -> General -> Debug Information Format)

    This did not work

  2. Change Visual Studio Compatibility Mode to Windows XP SP3

    This did not work

  3. Add the following in the Pre-Build Event : net stop "Machine Debug Manager" net start "Machine Debug Manager"

    This produced the following error: System Error 5 has occurred. Access is denied. This could be because I do not have Admin Access on this machine.

  4. I have not tried this one because I am not allowed to download untrusted code at my work. Run FreePDB.cmd posted by Tony76 here

  5. Changed the Symbol Path as seen here: image

    This did not work

What I know:

This error could occur if the pdb file exceeds 1GB but mine is only 10MB.

My limitations:

  1. I do not have Admin Access on this computer
  2. Cannot run untrusted software (Work Computer)
like image 849
Rana Avatar asked Feb 26 '16 22:02

Rana


1 Answers

I came across the same problem when I was moving my VS project from old disk to new PC. Deleting all debug files eliminated the issue, maybe Clean-Build would solve it as well, but that is not what I have tried.

like image 157
Coreggon Avatar answered Sep 25 '22 15:09

Coreggon