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