LNK1201 on Visual C++ 2003 -
i keep getting error message result after every debug run have done on of projects in vs2003. have browsed around many forums , provide answer not fit actual problem.
link : fatal error lnk1201: error writing program database 'd:\coding\flyff\projects\gui system 20110721\debug\gui system 20110721.pdb'; check insufficient disk space, invalid path, or insufficient privilege
i'm using windows 7 ultimate x64 visual studio 2003 .net (service pack vs7.1sp1-kb918007-x86.exe).
what have tried already:
- run in compatible mode several other operative systems , service packs.
- set project folders write permission full.
- run visual studio administrator.
- edited debug information format several other formats.
to reproduce bug, must have windows 7 x64 (probably ultimate). visual studio 2003 (with vs7.1sp1-kb918007-x86.exe update).
i have on 150 gb space has nothing that.
visual studio simple locks pdb file when debugging, , after debug cannot unlock it.
you must run code piece running few seconds, such this:
int apientry winmain( hinstance hinstance, hinstance hprevinstance, lpstr lpcmdline, int ncmdshow ) { sleep( 5000 ); messagebox( null, "test", "", 0 ); return 0; }
hope have solution, i'm required use environment configuration.
cheers, nicco.
i have found workaround solution problem has been plaguing me quite sometime:
1) download , install lockhunter (free utility unlock locked files):
http://lockhunter.com/download.htm
2) add install directory of lockhunter environment variable "path" avoid annoying administrator privilege popups every time run utility. me (using x64 version) was:
"c:\program files\lockhunter"
3) add following pre-build event visual studio project experiencing issue:
"lockhunter.exe /silent /unlock $(targetdir)$(targetname).pdb"
Comments
Post a Comment