Welcome, Guest
Guest Settings
Help

Thread: Bad exe build from command line.



Permlink Replies: 2 - Last Post: Nov 8, 2016 12:02 AM Last Post By: Alain Bourgeois Threads: [ Previous | Next ]
Alain Bourgeois

Posts: 12
Registered: 3/15/00
Bad exe build from command line.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 6, 2016 11:36 PM
Hi,

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).

Strange:
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.
Any hint?

Remy Lebeau (Te...


Posts: 7,749
Registered: 12/23/01
Re: Bad exe build from command line.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 7, 2016 11:19 AM   in response to: Alain Bourgeois in response to: Alain Bourgeois
Alain wrote:

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).

Define "does not work" exactly.

Strange:
build using command-line, .exe = 1.575Kb
make using command-line, .exe = 900Kb
build using IDE, exe = 367Kb.

EXEs that small imply they are being built with runtime packages enabled.
Are you distributing the relevant runtime package BPL files with your app?

Exe build from command-line does not work under windows XP (GPF at
start)

What is the EXACT error message?

--
Remy Lebeau (TeamB)
Alain Bourgeois

Posts: 12
Registered: 3/15/00
Re: Bad exe build from command line.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 8, 2016 12:02 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
The error message is a GPF crash.
Event viewer shows:
---
Faulting application pconfcdes.exe, version 1.0.0.0, faulting module dac230.bpl, version 9.7.28.0, 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").
I investigated;
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
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02