Kinook Software Forum

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

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 06-13-2007, 01:07 PM
DavidMacLean DavidMacLean is online now
Registered User
 
Join Date: 12-28-2005
Posts: 19
Delphi VRC no longer generated correctly?

Visual Build Pro version 6. Delphi version 5.
Suddenly VisualBuild has decided to create resource text files with some extra lines (in bold below).

Of course Borland's resource compiler rejects it.

No idea what I might have changed to make this suddenly start happening.

I am in trouble now, I cannot cut a version.

Please help. Many thanks.

1 VERSIONINFO

FILEVERSION 2007,6,9,0
PRODUCTVERSION 2007,6,9,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP


BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileVersion", "2007.6.9\0"
VALUE "FileDescription", "\0"
VALUE "LegalCopyright", "(c) 2006 IMS Island Microsystems Ltd.\0"
VALUE "Comments", "Release Candidate 3\0"
VALUE "CompanyName", "Island Microsystems Ltd.\0"
VALUE "InternalName", ""
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", ""
VALUE "ProductName", "IMS Application Base\0"
VALUE "ProductVersion", "2007.6.9\0"
VALUE "PrivateBuild", "\0"
VALUE "SpecialBuild", "\0"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409 0x04E4
END
END
Reply With Quote
  #2  
Old 06-13-2007, 02:36 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
That is a valid version info resource (accepted by brcc32.exe 5.40 from Delphi 6 [oldest version we have] as well as multiple versions of MS rc.exe), and the VBP Make Delphi action has always generated a .vrc file in that format if one didn't already exist. Attached is a .bld file that works properly using VBP v6.4, Delphi 6, and version value of 2007.6.9.0, with build output of:

6/13/2007 1:30:25 PM: --------------------Starting Build: 'Untitled'--------------------
6/13/2007 1:30:25 PM: Building project step 'Make Delphi'...
setting version...compiling VERSIONINFO RC file...
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
updating VERSIONINFO resource...building...

Borland Delphi Version 14.0
Copyright (c) 1983,2001 Borland Software Corporation
WordPad.dpr(1)...
86 lines, 2.45 seconds, 603528 bytes code, 8953 bytes data.
6/13/2007 1:30:28 PM: Build successfully completed.


Note that some information will be missing from the resulting version info resource if those lines are removed, but the Make Delphi action will not add those lines back into the .vrc file if removed externally.
Attached Files
File Type: bld test.bld (512 Bytes, 1910 views)
Reply With Quote
  #3  
Old 06-13-2007, 02:55 PM
DavidMacLean DavidMacLean is online now
Registered User
 
Join Date: 12-28-2005
Posts: 19
<step action='Make Delphi'>
<AssemVer type='11'>-1</AssemVer>
<FileVer type='11'>-1</FileVer>
<Filename>%PACKAGEPATH%\IMXA50DBY.DPK</Filename>
<Options>-Q /LE%RELEASEDIR%</Options>
<ProdVer type='11'>-1</ProdVer>
<Property1>%VER_COMPANYNAME%</Property1>
<Property3>%VER_COPYRIGHT%</Property3>
<Property5>IMS Application Base</Property5>
<PropertyOn1 type='11'>-1</PropertyOn1>
<PropertyOn2 type='11'>-1</PropertyOn2>
<PropertyOn3 type='11'>-1</PropertyOn3>
<PropertyOn4 type='11'>-1</PropertyOn4>
<PropertyOn5 type='11'>-1</PropertyOn5>
<UpdateDOF type='11'>-1</UpdateDOF>
<Version>%VER_BUILD%</Version>
<VersionSel type='3'>2</VersionSel>
<buildfailsteps type='11'>0</buildfailsteps>
<continueonfail type='11'>-1</continueonfail>
<indent type='3'>1</indent>
<name>DBY</name>
</step>




6/13/2007 12:40:28 PM: Building global subroutine step 'DBY'...
setting version...compiling VERSIONINFO RC file...
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

Error IMXA50DBY.vrc 3 21: Expecting BEGIN

Process completed with exit code 20018
6/13/2007 12:40:29 PM: Step 'DBY' failed


...it does not seem to be valid for my copy of the same version (5.40) of the borland resource compiler ?!! If I remove the offending lines it compiles fine.

I have changed something, but what? I was using the same suite of tools for months (years?) without an issue.

Why has VisualBuild decided to start putting these lines into the VRC text file? It never used to.

I cannot figure out what I have changed.

When I rollback to months ago, or delete all the VRC, VisualBuild keeps inserting the lines which cause BRCC32 to fail.

In other words, after months of uneventful building, I now have three applicatioins with hundreds of steps that are suddenly useless to me....

Not sure why you say it is a valid resource file. Just cut and paste the text and try it. We have the same version of BRCC32.

Maybe you can look at that xml project step gobbledegook and spot what I have inadvertently changed.

Appreciate your assistance, thanks.

PS: Recent changes on my system? I installed CODESITE logger from RAIZE software. In the odd event there are some known intereferences....
Reply With Quote
  #4  
Old 06-13-2007, 03:48 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Quote:
Originally posted by DavidMacLean
...it does not seem to be valid for my copy of the same version (5.40) of the borland resource compiler ?!!
I think most versions of brcc32.exe report the version as 5.40 in their output. The Explorer file properties shows a File Version of 50.4.227.0 and a modified date of May 22, 2001.

Quote:
If I remove the offending lines it compiles fine.
Does the prior attachment have the same problem when built there? Which version of VBP and Windows are you running?

Quote:
I have changed something, but what? I was using the same suite of tools for months (years?) without an issue.
I have no idea.

Quote:
Why has VisualBuild decided to start putting these lines into the VRC text file? It never used to.
Again, the Make Delphi action has always creating the version info resource in that format when generating a new .vrc file (if one doesn't already exist).

Quote:
I cannot figure out what I have changed.

When I rollback to months ago, or delete all the VRC, VisualBuild keeps inserting the lines which cause BRCC32 to fail.

In other words, after months of uneventful building, I now have three applicatioins with hundreds of steps that are suddenly useless to me....
Again, the Make Delphi action will not add those lines back into the .vrc file if removed externally, so one workaround might be to do that rather than deleting them (but again, note that some information will be missing from the resulting version info resource if those lines are removed).

Quote:
Not sure why you say it is a valid resource file. Just cut and paste the text and try it.
The .vrc file generated by the Make Delphi action for the previously attached sample (which compiled successfully in our tests w/ Delphi 6) was identical to what you originally reported.

Quote:
We have the same version of BRCC32.
Most likely not if you have Delphi 5.

Quote:
Maybe you can look at that xml project step gobbledegook and spot what I have inadvertently changed.
I don't think that's the issue, but you're using macros to define your values, and those aren't provided.
Reply With Quote
  #5  
Old 06-13-2007, 03:58 PM
DavidMacLean DavidMacLean is online now
Registered User
 
Join Date: 12-28-2005
Posts: 19
Thank you for your attention. Much appreciated.

I uninstalled Codesite and everything went back to normal.

No idea what that might have been.

Many possible explanations. None obvious. Don't care. Gotta get back to work.

Again, thank you for your prompt attention.

PS: Yes, verified same version (v50.4.227.0) and only one copy on the drive.

PPS: Also note we have released many versions to date with leading zeroes, never an issue for us.
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 03:33 PM.


Copyright © 1999-2023 Kinook Software, Inc.