Error reproduced on two platforms with different versions.
- FB 7.0.0.2528, windows 7, SP 1 (64 bit version)
- FB 7.0.0.2641, windows Server 2008R2, SP1 (64 bit version)
I am not sure how to get you something to reproduce this, but maybe someone else will come up with a simpler case or I will later. At least anyone else encountering this will know what circumstances sets up this problem.
We have a couple of applications (not all) and it is our biggest two applications (is not that always the case), that exhibit the following behavior:
Compile configuration: We compile 64 bit with Regenerate Resource to provide the Version Information in the program properties. We are not using property sets. Instead, we have variables specified in the Version Information tab of the Build Delphi action. The error we get when running the application is "The application was unable to start correction (0xc000007b).
We do not get this error if we compile in the IDE with version information (but of course we use FB to automate builds every night). We do not get this error if we turn off regenerate resource (prevents updating our version information) in the Build Delphi action of FB. We still get this error if we do a 32 bit compile with Regenerate Resource before building the 64 bit version with Regenerate Resource turned off on the 64 bit build. Once we do a build with Regenerate Resource, 64 bit builds will be bad until we restore the source folder (or open Version Information in the IDE itself which corrects the issue).
The 32 bit version of our application runs fine when we build it with Regenerate Resource, but it sets up the 64 bit compile to fail.
It appears that the manner in which FB regenerates the resource file is different than the IDE.
My work around solution will be to put static Version Information into the 64 bit version of the application at design-time and display version information that is compiled into the application during a build in the caption heading of the app. Right click properties on the EXE file will show something like 14.2.0.0 instead of 14.2.1.13 (which will display on form caption). I'll make sure the 64 bit app compiles first (or restores the resource file).