Mail Archives: djgpp/1997/09/29/07:02:26
Eli Zaretskii wrote:
>
> On 28 Sep 1997, Paul Derbyshire wrote:
>
> > How about when the exe needs to read its own
> > attached stuff back, or modify it? Same thing? Won't this cause errors in
> > windows and other file sharing environments when the exe will be "in use"?
>
> Why would the .exe file of a running program be "in use", Windows or
> no Windows? I don't think it should. For example, I have no problems
> building Emacs (where eventually the old emacs.exe is entirely
> overwritten) on Windows when the old emacs.exe is already running.
Ther are cases when the exe file remains open, and then you might get a
problem. PMail, for example is such a beast. What I have not yet
figured out is which programs show this behavior (Well, all TurboPascal
files with the overlay appended to the exe). And if there is the
slightest
chance of porting the program to UNIX, writing back to the exe file
is a big No-No.
IMHO, puting the data into an object file is not that bad, it is
portable (without write back, of course, but Shawn had reading in
mind, I guess), and the unused stuff gets paged out if neccessary.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -