Hi !

You don't need to use absolute addresses to make you EXE non-
relocatable.  If you have some Windows call-back routines, e.g.
multimedia timer call-backs, or even in the TListView (?) these 
will (may ?) need to be located in a non-relocatable segment.  

This is so that Windows doesn't try to swap it to disk (virtual 
memory).  Normally though, these call-backs should reside in a DLL, 
but I believe you mentioned that you had only one EXE, no DLL's, 
hmm . . . interesting !

A corrupt EXE could also be the cause of the problem. :-)

Leon

-------------------------------------------------------------------
Leon Raj                  Private email  (NZ):   [EMAIL PROTECTED]
the "Kiwi Viking"         Private email (FIN): [EMAIL PROTECTED]
Jyska, FINLAND                  (formerly of Auckland, NEW ZEALAND)
-------------------------------------------------------------------


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Kuet-Fung Chong
> Sent: Wednesday, 25 August 1999 02:46
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Built on NT, deploy on Win95
> 
> 
> 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.
> 

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to