Share via


Error Writing to .PDB File After Line Profile Operation

OverviewHow Do I

Feature Only in Professional and Enterprise Editions   Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .

Attempting to build or rebuild a project after doing a line profile operation on the project may result in the following error message:

  LNK1201: error writing to program database "c:\Microsoft Visual Studio\Common\msdev98\MyProjects\yourapp\Debug\yourapp.pdb"; check for insufficient disk space

The Development Environment does not close the project's program database file (.PDB) after doing a line profile. Upon attempting to rebuild the project, the linker cannot write to the project's .PDB file, causing the LNK1201 error.

There are a number of ways to work around this problem:

  • Exit the development environment then restart and reload your project.

  • Run the project under the debugger. Choose the Debug command from the Build menu (F5). Close the application or stop debugging. This will close the .PDB file.

  • Use a batch file to line profile your application. This can easily be done by specifying the LCOVER.BAT file in the Profile dialog box's Custom Settings.