Solved

Visual Studio C++ Windows 7 pdb error

Posted on 2011-09-14
6
2,041 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 7

Accepted Solution

by:
JimBeveridge earned 500 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

Scamming the Scammers!

Have you ever heard of Scam Baiting?
It's a highly entertaining sport that you can participate in.
Introduction to beating scammers at their own game and how you can help
Share your thoughts, ideas and experiences on the topic.
Links to top Anti-Scam resources provided.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
OfficeMate Freezes on login or does not load after login credentials are input.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

751 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