home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!munnari.oz.au!yarrina.connect.com.au!warrane.connect.com.au!g2syd!michaelh
- From: michaelh@g2syd.genasys.com.au (Michael Haldey)
- Subject: Re: Clipper 5.01 left over locks
- Message-ID: <1992Nov11.234705.4271@g2syd.genasys.com.au>
- Organization: Genasys II, Sydney, Australia
- References: <paulb.721055967@cs.man.ac.uk>
- Date: Wed, 11 Nov 1992 23:47:05 GMT
- Lines: 46
-
- In article <paulb.721055967@cs.man.ac.uk> paulb@cs.man.ac.uk (Paul Bean) writes:
- >I have a program which is to run on both a network and single user. I
- >use the locks.prg supplied with clipper to do the appropriate locking
- >for me. I have one version so I do the locking even if it is on a
- >single user dos machine. I was running it single user yesterday (Dos
- >5.01 by the way) when it keeled over with not enough memory. I
- >removed a couple of drivers so that there was enough memory for it to
- >run and went in again, however when the program came to open the dbfs
- >that were exclusively locked when it went down it could not
- >open them(in shared mode). I presumed that the lock information was
- >held in the dbfs so I deleted these and went to a backup. However
- >when I tried to run the program it still wouldn't let me open the
- >previously locked files. I tried moving everything to a new
- >directory,still no joy. I have tried ringing Computer Associates who
- >could not suggest anything. Does anyone know where the lock
- >information is held ? and how I can get rid of it. This is becoming a
- >real pain.
- >
- >Thanks in advance Paul
-
- Here are some ideas about it. I did not write locks in single-user environment,
- so I do not guarantee the accuracy and hope that someone would correct me.
-
- The Dos has a number of interrupts dealing with locks (numbers smth like 5ch).
- The Clipper uses these interrupts to obtain the locking information on
- dbf. The dbf file itself has no place for locking lists at all. If you are
- on the network - all is clear, the network server intercepts the interrupt
- calls and provide locking (this is what Novell does). In single USER Dos,
- the SHARE command should be loaded to deal with the interrupts and because
- Clipper is working without it, I suspect that Clipper has support for
- the lock lists within and use it together with DOS interrupts. So, if
- the interrupt says that the record is unlocked and there are no locks in the
- list, the region is considered to be unlocked. I'd like also to note that
- locking in DOS may be for any file, because the interrupt is supplied by
- file, offset, and length of locked region.
-
- My 0.02
- Michael
-
- P.S. I did not manage to receive any info on internal locking in Clipper
- from support in Australia either.
- --
- Michael Haldey | Genasys II Pty Ltd
- | 13th Level, 33 Berry St, North Sydney, NSW, Australia
- | Phone: +61-2-954-2878 (-9930 FAX)
- | Internet: michaelh@g2syd.genasys.com.au
-