TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Carl Forester
from: Ed Blackman
date: 1994-08-29 12:13:26
subject: HELPPPP!!!

On  in a message to Jon Guthrie, Carl Forester wrote:

JG> OS/2 is not DOS.  When OS/2 loads an executable program, it
JG> opens it in a sharing mode that prevents anyone from writing to
JG> it. That means that a program can't write to its own executable
JG> file.

JG> Not only that, but writing programs that save configuration
JG> information in their exe's hasn't been a good idea for a
JG> half-dozen years.  How do you handle a LAN environment where
JG> multiple people want to share the same executable, but want to
JG> configure it differently?

CF> Thanx for the answer to my question, but!
CF> This program will never be run on a LAN, so I don't see the
CF> problem with it writing to itself.

The problem comes from the way OS/2 handles physical and virtual memory
management.  OS/2 only writes _data_ to the swapper file.  Executable
code is discarded from memory entirely, and reread from disk when it's
needed again.  That could lead to some serious problems if you've
changed the code between the time OS/2 discards it and the time it reads
it from the disk again, so OS/2 makes sure that you can't do that.


Ed Blackman

... Windows 3: The Network Consultants Full Employment Act of 1990.
--- Blue Wave/Max v2.12 [NR]

* Origin: The Federal Post -{*}- Spring-Lake, NC (1:3634/2)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1
@PATH: 3634/2 1 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.