Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!unido!uniol!sol.north.de!skuld!dat1hb!lion From: lion@dat1hb.north.de (Daniel Tietze) Newsgroups: comp.lang.pascal Subject: Share Message-ID: Date: 24 Jun 91 12:04:15 GMT Organization: DATELINE Communications, Bremen Lines: 30 Hi! I'm sorry if the answer to this question seems ovious to you, you may be just the one person who knows all his interrupts by heart. I don't, so could someone please help? (reading some of the replies posted in this newsgourp, I thought this preface was adequate). I have a question about using SHARE (as supplied with MS-DOS) with Turbo Pascal programs. How can I check SHARE violations in my program? What exactly does SHARE do when it encounters a sharing violation? I believe the IOResult is set to an appropriate value, but I don't know exactly which result is to be expected. How can I get the program to retry after a sharing violation. Do I have to code it explicitly (i.e. repeat .... until (share_ok OR computer_switched_off; :-) ) or does SHARE take care of that? By the way, when exactly does a sharing violation occur? In Read/Read, Read/Write or Write/Write situations? The problem to be solved is: I want to make my BBS multi-nodeable and two users accessing the same Board at the same time could prove fatal in certain situations, so I have to have a way of getting around this, don't I? Any help would, as usual, be greatly appreciated. Daniel +------------------------------------------------------------------+ | Daniel Tietze, 2800 Bremen 1, Tel.(voice) : 0421/448806 | |-=============- DATELINE Communications, Bremen. The home of DMS | | Mail: (private) lion@dat1hb.north.de (univ) E07J@DHBRRZ41.BITNET | |-====- DMS-Support: dateline@dat1hb.north.de | +------------------------------------------------------------------+