Thanks Myles for giving the meaning of the error message.
As far as I know, my code does not reference absolute address. (Can't be
sure about the components I used.)
For peace of mind, I re-test my distribution disk to make sure the EXE is
not corrupted. I'm gonna test it on ANOTHER win95 PC next.
Cheers,
Kuet-Fung.
-----Original Message-----
From: Myles Penlington [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 25, 1999 11:34 AM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Built on NT, deploy on Win95
I know what it means but I am very surprised!!
By default Delphi programs load at address $0040000, but i another program
is using this address range, Windows will relocate it to another address
range automatically (if ir can) - it would appear for some reason this
failed, or the executable has been marked (corrupted) as non-relocatable.
I thought all Delphi apps were relocatable (I did not know there was an
option to turn it off?? - or can someone correct me here !)
You can change the default base address of a program on the linker options
page, by default it is $0040000.
You don't have references to variables being at absolute addresses?? (This
can be done, but I don't know if this has any affect on the program being
marked as non-relocatable).
Myles.
> -----Original Message-----
> From: Kuet-Fung Chong [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 25, 1999 11:03 AM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Built on NT, deploy on Win95
>
> Hi all,
>
> My message yesterday was not accurate, I tried to relay the error message
> from memory and it's way off. Here is a correct description of the
> problem:
>
> My Delphi4 application built on NT WS4.0, when deployed on a Win95 machine
> gives the following Windows error:
>
> "The <program_name> file can't load its desired address. It is not
> relocatable."
>
> Anybody knows what that means? I tried searching MSDN (July 99) and
> haven't
> come out with anything yet.
>
>
> Thanks,
> Kuet-Fung.
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz