The Delphi Bug List

Entry No.
609
Compiler - Linker
The command line compiler (DCC32) puts an invalid image base to the EXE-header
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AAbsentAbsentAbsentAbsentExistsExistsExistsExistsExistsExistsFixedFixedFixedN/A
Description
Reported by Max Masyutin
The Delphi 4 command line compiler (DCC32) puts an invalid image base to the EXE-header unless you explicitly specify {$IMAGEBASE $400000} in your .dpr file. Furthermore, it ignores the -K$00400000 option in the .cfg file.
This invalid image base could prevent exe-files from being loaded under Win95/98.

Delphi 2 didn't have this bug. The IDE version of Delphi 4 also doesn't have it. This bug exists only in the Delphi 4 command line compiler (DCC32).
Other versions of Delphi were not tested.

Jordan Russell added (9 Aug 2000):
It appears that the bug only occurs if there is a -K (image base) parameter in the project's .cfg file. Removing that line from the .cfg file, or deleting the .cfg file, causes the problem to go away.

Latest update of this entry: 2001-06-19

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.