c++ builder xe10, on win7x64.
I have a project vcl - win32 - release . Builds from IDE are fine, and work. Exe works everywhere (win 7, win xp)
Using msbuild pconfcdes.cbproj /t:Build /p:config=Release => No error, seems ok ... but exe does NOT work on win xp (but works on win7).
build using command-line, .exe = 1.575Kb
make using command-line, .exe = 900Kb
build using IDE, exe = 367Kb.
Exe build from command-line does not work under windows XP (GPF at start)
Exe build from IDE works fine under windows XP.
Both exe's work in win7.
Problem seems to come from link: build using command-line, delete .exe, then open project in IDE, Make
=> No recompile, re-link, .exe=367Kb and works on windows XP (and above).
Also strange: del.exe, msbuild pconfcdes.cbproj /t:Make /p:config=Release => exe makes 900Kb.
It is the same cbproj. Why Why Why.
The error message is a GPF crash.
Event viewer shows:
Faulting application pconfcdes.exe, version 184.108.40.206, faulting module dac230.bpl, version 220.127.116.11, fault address 0x00003918.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Yes, the bpl's are there (otherwise I get a message ".....bpl was not found").
the fact to have several times the same .lib in LinkPackageStatics (<LinkPackageStatics>soaprtl.lib;xmlrtl.lib;inet.lib;dac230.lib;unidac230.lib;unidacvcl230.lib;dacvcl230.lib;unidacvcl230.lib;unidac230.lib</LinkPackageStatics>), LinkPackageImports (<LinkPackageImports>rtl.bpi;vcl.bpi;dbrtl.bpi;vcldb.bpi;vclx.bpi;dsnap.bpi;dac230.bpi;unidac230.bpi;unidacvcl230.bpi;dacvcl230.bpi;unidacvcl230.bpi;unidac230.bpi), AllPackageLibs (<AllPackageLibs>rtl.lib;vcl.lib;dbrtl.lib;vcldb.lib;vclx.lib;soaprtl.lib;xmlrtl.lib;inet.lib;dsnap.lib;dac230.lib;unidac230.lib;unidacvcl230.lib;dacvcl230.lib;frx23.lib;fs23.lib;vclimg.lib;frxDB23.lib;fsDB23.lib;unidacvcl230.lib;unidac230.lib</AllPackageLibs>) seem to cause the issue ONLY when build is made from command-line . Build from IDE is always fine.
I have the problem with some other projects as well (GPF at start when build from command-line), so the only reliable solution till now is making all projects from IDE manually.
Also, size of an exe build using ide is always smaller than the size of the exe build using command-line. And exe generated by IDE always work!
Edited by: Alain Bourgeois on Nov 8, 2016 12:02 AM