致命错误LNK1201:写入程序数据库时出错-Visual Studio 2003 [英] fatal error LNK1201: error writing to program database - Visual Studio 2003
问题描述
我收到此错误:致命错误LNK1201:每次我编辑代码并在Visual Studio 2003中再次构建时,都写入程序数据库时发生错误
。
如果重新启动VS2003,此问题已解决,但是每次构建项目时都需要这样做。
我一直在使用Google搜索stackoverflowing;)了几个小时,并尝试了以下建议的解决方案:
-
将调试信息格式从Zi更改为Z7。 (属性-> C / C ++->常规->调试信息格式)
这不起作用
-
将Visual Studio兼容模式更改为Windows XP SP3
这不起作用
-
在预构建事件中添加以下内容:
net stop Machine Debug Manager
net start机器调试管理器 c
这产生了以下错误:
发生系统错误5。拒绝访问。
这可能是因为我在此计算机上没有管理员访问权限。 -
我没有尝试过这一代码,因为我不允许在我的工作中下载不受信任的代码。运行由Tony76发布的FreePDB.cmd
这不起作用
我所知道的:
如果pdb文件超过1GB但我的只有10MB,则可能会发生此错误。 p>
我的限制
- 我没有管理员在此计算机上的访问权限
- 无法运行不受信任的软件(工作计算机)
当我将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:
Change the Debug Information Format from Zi to Z7. (Property -> C/C++ -> General -> Debug Information Format)
This did not work
Change Visual Studio Compatibility Mode to Windows XP SP3
This did not work
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.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
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:
- I do not have Admin Access on this computer
- 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屋!