致命错误LNK1201:写入程序数据库时出错-Visual Studio 2003 [英] fatal error LNK1201: error writing to program database - Visual Studio 2003

查看:533
本文介绍了致命错误LNK1201:写入程序数据库时出错-Visual Studio 2003的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:致命错误LNK1201:每次我编辑代码并在Visual Studio 2003中再次构建时,都写入程序数据库时发生错误



如果重新启动VS2003,此问题已解决,但是每次构建项目时都需要这样做。



我一直在使用Google搜索stackoverflowing;)了几个小时,并尝试了以下建议的解决方案:


  1. 将调试信息格式从Zi更改为Z7。 (属性-> C / C ++->常规->调试信息格式



    这不起作用


  2. 将Visual Studio兼容模式更改为Windows XP SP3



    这不起作用


  3. 在预构建事件中添加以下内容: net stop Machine Debug Manager
    net start机器调试管理器 c



    这产生了以下错误:发生系统错误5。拒绝访问。这可能是因为我在此计算机上没有管理员访问权限


  4. 我没有尝试过这一代码,因为我不允许在我的工作中下载不受信任的代码。运行由Tony76发布的FreePDB.cmd



    这不起作用


我所知道的:



如果pdb文件超过1GB但我的只有10MB,则可能会发生此错误。 p>

我的限制


  1. 我没有管理员在此计算机上的访问权限

  2. 无法运行不受信任的软件(工作计算机)


解决方案

当我将VS项目从旧磁盘移动到新PC时,遇到了相同的问题。删除所有调试文件可以消除该问题,也许Clean-Build也可以解决该问题,但这不是我尝试过的。


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:

    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)

解决方案

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.

这篇关于致命错误LNK1201:写入程序数据库时出错-Visual Studio 2003的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆