Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio C++ Windows 7 pdb error

Posted on 2011-09-14
6
Medium Priority
?
2,106 Views
Last Modified: 2012-06-21

Hi,

I copied a project from an XP machine, where everything worked fine, over to a windows 7 machine, where I have the following errors:

1>client : error PRJ0007 : Could not create output directory 'c:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug'.
1>Linking...
1>LINK : fatal error LNK1201: error writing to program database 'c:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\client.pdb'; check for insufficient disk space, invalid path, or insufficient privilege

In actual fact the 'debug' folder has been created by an earlier pass of the compiler and several v80.obj's have been added and other files as well.

At some point the compiler decides it cannot create the debug folder and later the linker decides it cannot write to the pdb.

If I create a separate standalone project and write some test piece of code, then all works fine.

I've tried this starting Visual Studio as admin. Still fails.

I've tried both VS2005 and VS2008, with exactly the same issue.

There is several hundred gig of free space.  

I can delete the debug folder and it will be created, files added, but then fail as above, so it is not a permissions issue.

I've moved everything to a folder right off of c:; same issues. so it is not some pathing issue.

I've stopped and started Visual Studio, rebooted etc... still fails.


Any ideas?

Thanks
Phil



0
Comment
Question by:BeerFizz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:JimBeveridge
ID: 36539841
Take a look at the eror message. It includes "c:\" twice. This is an invalid path (as noted by the error message) and simply won't work.

If that's not the problem, then download procmon from http://technet.microsoft.com/en-us/sysinternals. Tell it to monitor devenv and filter on a path of the pdb. Build the project and let it fail. Now look at which call fails and what the particular error is.
0
 

Author Comment

by:BeerFizz
ID: 36540053
Hi Jim,

thank you for your response.

There is a space between the two paths.   This appears to be correct and this is the way it is output for what ever reason.   It seems to be describing the base path and then the file/relative path within the base path, if that makes sense.

I'll try the procmon idea and report back.

Phil


0
 

Author Comment

by:BeerFizz
ID: 36540173
Hi Jim,

I did as you suggested wrt procmon and I believe you are absolutely corerct in that the path is invalid.

I have included some of the output from procmon... some of the lines show SUCCESS created and some show NAME INVALID.   Those with NAME INVALID all have the double pathing.

See attached.

Question is, where is this coming from??   I'll look into this further.

Phil

7:11:46.5739822 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\vc80.idb	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.6369400 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\client.pdb	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.6370644 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\ssl.obj	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.6394828 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\client.obj	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.6396441 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\client.exe	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.6443607 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.6444826 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.6576172 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.6577514 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\BuildLog.htm	SUCCESS	Desired Access: Generic Read/Write, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: None, AllocationSize: 0, OpenResult: Overwritten
7:11:46.6583754 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\vc80.idb	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.7128070 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\client.pdb	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7154362 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\client.exe	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7157501 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7158279 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7166849 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0
7:11:46.7167743 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug	NAME INVALID	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7182741 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7184080 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:46.7427027 PM	devenv.exe	12624	CreateFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
7:11:46.9941253 PM	devenv.exe	12624	WriteFile	C:\Users\phild\Documents\Visual Studio 2005\Projects\gex\client\Debug\BuildLog.htm	SUCCESS	Offset: 0, Length: 4,096, Priority: Normal
7:11:47.0366419 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
7:11:47.0367792 PM	devenv.exe	12624	CreateFile	C:\users\phild\documents\visual studio 2005\projects\gex\client\ c:\users\phild\documents\visual studio 2005\projects\gex\client\debug\	NAME INVALID	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

Open in new window

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 7

Accepted Solution

by:
JimBeveridge earned 2000 total points
ID: 36540428
Look in your project properties in Visual Studio for where paths are specified, particularly the path for the pdb file. As you make changes, look at the Command Line property to see which property affects the result.
0
 

Author Comment

by:BeerFizz
ID: 36546026
Could not find anything at all using the project properties... so i edited the *.vcproj file and compared it with  one from a new project I had created.   The main difference that I could find which looked like it might have affected things was the a line in both the debug and release config which was there in the project that failed and not in the new project.  The line was 'OutputFile'.  I deleted it from both configs and all worked as it should.

<Tool
	Name="VCLinkerTool"
	...
	OutputFile=" $(SolutionDir)$(ProjectName)\$(ConfigurationName)\$(ProjectName).exe"
	...
/>

Open in new window

0
 

Author Closing Comment

by:BeerFizz
ID: 36546032
Thanks for you assistance.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question