Problem generating resources in FB7.0.0.993

I have a Finalbuilder project that includes a number of Delphi 7 projects to be compiled. I had to make some major revisions to the FB project so took the opportunity too upgrade this particular FB project from FB6 to FB7.

On trying to run the FB7 project I hit an error on the first Delphi 7 project:

      Generating Resource File....
      Including ICON File :S:\Delphi\Icons\acc.ico
       
        Borland Resource Compiler  Version 5.40
        Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
        Lines: Current 0, Total 0
        New File: FW_Accounts.rc
        Lines: Current 1, Total 0
        New File: S:\Delphi\ac\FW_Accounts.rc
        Lines: Current 1, Total 0
        Compiling ICON: MAINICON
        Lines: Current 3, Total 2
        Compiling VERSIONINFO: 1
       
        Error FW_Accounts.rc 4 16: Expecting BEGIN
        Resource Compile Failed.
 

As part of the changes being made I had added a new key to the Version Information section of the Version Info tab so my first though was I had made a mistake there, however removing the new key didn't help - I still received the same error message.

I have also tried opening the original FB6 project and saving it unchanged as a FB7 project and this has exactly the same problem.

Cheers

Paul James

Hi Paul

Can you send your FinalBuilder 6 & 7 projects to support at finalbuilder.com so I can try to reproduce it here. I really need to see the exact settings, and see if it is an upgrade issue or not.

Having reverted to FB7.0.0.605 I am now able to successfully build the Delphi exes with no change to the FB7 project file sent yesterday therefore it would appear to be an issue that was introduced at some point between 605 and 993.

Cheers

Paul James

Hi Paul

I don’t have Delphi 7 installed at the moment, can you send us the project.rc file that FinalBuilder generates so I can see what line it is complaining about. I tested your project using D2007 and it worked fine, but I suspect that the resource compiler version is not the same. I’ll take a look at our version history and see if I spot a possible cause in the meantime.

Two .rc files have been sent to support. Looking at the actual files there do appear to be a couple of differences, one of which is probably the cause of the problem.

Cheers

Paul James

Yup thanks, found and fixed.

FWIW, the issue is caused by the fact that FB6 did not actually use the ProductVersionString for the PRODUCTVERSION, however FB7 does, but the PRODUCTVERSION field can only contain the version numbers, not text. This issue doesn’t usually come up as most people have the File and ProductVersion fields linked. I have changed it to attempt to extract the version number from the ProductVersion string (using regex) and if that fails then it will use the FileVersion.

A new build is running now, I’ll post a link here when it’s uploaded (20 minutes or so).

Hi Paul

Here’s the build with the fix : https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1060.exe

I have tested the new build and can confirm the problem has been fixed.

Cheers

Paul James