0

I have a Visual Studio 2003 installed on a Windows7-64Bit. When I build a project in vs2003 it creates a pdb file. For example: for a project named SampleProject, it creates a SampleProject.pdb and when i try to rebuild it gives an error like:

fatal error C1033: cannot open program database 'd:....\SampleProject.pdb'

I can rebuild only if i close visual studio 2003 and delete pdb and let him regenerate a new one

Can u help please?

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
aeciftci
  • 679
  • 2
  • 6
  • 15
  • 1
    possible duplicate of [Has anyone managed to get Visual Studio 2003 running on Windows 7?](http://stackoverflow.com/questions/879082/has-anyone-managed-to-get-visual-studio-2003-running-on-windows-7) – Matteo Italia Dec 08 '11 at 13:05

2 Answers2

0

I work on Windows 7 Professional 64bit and had the same issue with fatal error C1033 during compiling C++ project in VS2003 (with installed SP1). Setting application compatibility to Windows Vista (I tried also Vista SP2 succesfully) eliminated this problem.

SalgoMato
  • 302
  • 2
  • 6
0

It's a known compatibility problem of Visual Studio 2003 on Windows Seven (another one is "Find All" blocking the whole application if you don't disable Aero themes).

It seems that the only solution to avoid restarting VS2003 every time is to unlock the PDB (with some unlocker-like application) and delete it; I even added it as an "External tool" with some keyboard shortcut. Sad thing that MS didn't even release a fix for it (and instead jumped through hoops to make VS 6.0 work on every Windows version).

---edit---

I knew it... there's already a question about it (whence I learned about the workaround).

Community
  • 1
  • 1
Matteo Italia
  • 123,740
  • 17
  • 206
  • 299
  • Can u give an example of "unlocker-like" application or can u give a link to it please and how to set it as an external tool. Newbie alert! – aeciftci Dec 08 '11 at 13:34
  • http://stackoverflow.com/a/1836771/214671 (I can't give you precise instructions about how to add it as an external tool because I am currently on a Linux machine) – Matteo Italia Dec 08 '11 at 13:56