TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: tom schlangen
date: 1996-12-25 12:45:38
subject: ?

Hi,

sorry if this should not be the best echo to post the following question
to, but at least the question has to do with programming and os/2 (and its
dos-box) :-)

    scenario:

because of certain reasons (not to be discussed here) someone runs several
lines of a mailer program available for both os/2 and dos, one native dos
in the os/2 dos box and one native os/2 and one native dos peer2peer lan'd
to (i don't know to which of both).

the mailer program opens some files specific to it (e.g a filebase index)
in sharing mode, read only, deny write, but the dos-version (in the dos
box) crashes with a sharing violation if another (os2-based or lan based)
line tries to access the same file.

it has been tested and confirmed on a novell 3.12 based system, that the
file access/sharing rights for the file causing the crashes are set
correctly by the native dos exe:

=== Cut ===
  Use Count:                       1      Not Locked - Not Logged
  Open Count:                      1
  Open For Read:                   1
  Open For Write:                  0
  Deny Read:                       0
  Deny Write:                      1
  Status:                 Not Locked
=== Cut ===

and the native os/2 version does not make any problems whatsoever in pure
os/2 multiline environments.

    questions:

i suspect that the os/2 dos box probably changes certain file access rights
of files shared between os/2 sessions and os/2-dosbox-sessions.

-   is this true?

-   regardless if true or not, any suggestions to work arround the mentioned
    problems/crashes?

tom

---
* Origin: will program for food, coffee and echomail: (2:2450/10)
SEEN-BY: 270/101 711/401 409 410 413 808 809 934 955 712/407 515 624 628
@PATH: 2450/10 24/888 396/1 270/101 712/515 711/808 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™.