Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-26-2005, 03:38 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Mac server wally file permissions

I have an exceeding strange situation where VBP can't find a .bld file from a "Build a Project" step, but the exact file path string given in the message log can be pasted into Explorer or onto a command line to open the build project.

The project file resides on a Mac server using Samba to massage file permissions and I suspect that there is a premission problem. But it's very odd that however VBP is checking for the presence of the file is failing, but that any other technique that I have tried seems to work.
Reply With Quote
  #2  
Old 01-26-2005, 04:24 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Just to verify, you're using the VisBuildPro Project action and it's failing with the message "Project file '<filename>' not found"?

The logic for that code is essentially:

bool FileExists(LPCTSTR filename)
{
DWORD attr = GetFileAttributes(filename);
return attr != INVALID_FILE_ATTRIBUTES && !(attr & FILE_ATTRIBUTE_DIRECTORY);
}

if (!FileExists(projfile))
{
// show error message and fail the step
}

Are you able to create a test app to see what GetFileAttributes returns for this file? Thanks.
Reply With Quote
  #3  
Old 01-26-2005, 04:36 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Mac server problems was a red herring.

Turns out that a text file containing the list of projects to be built had been corrupted with extra cr characters in each cr/lf "pair" and the extra cr was being included as part of the file name. It's hard to see cr characters :-)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:26 AM.


Copyright © 1999-2023 Kinook Software, Inc.