mechanism for locking records in a DBF file

Post Reply
User avatar
mauri.menabue
Posts: 89
Joined: Thu Apr 17, 2008 2:38 pm

mechanism for locking records in a DBF file

Post by mauri.menabue »

Good morning

I would like to have clarifications regarding the mechanism for locking records in a DBF file.
Based on the lock scheme
DBFLOCK_DEFAULT 0
DBFLOCK_CLIP 1
DBFLOCK_CL53 2
DBFLOCK_VFP 3
DBFLOCK_CL53EXT 4
DBFLOCK_XHB64 5
are seen as different Loked records,
is the list of locked records memorized in the file header?
How can you reset the list of locked records?
It happens that due to network disconnections I still have files
with record locked while closing and reopening the file.

Thanks all.
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: mechanism for locking records in a DBF file

Post by TimStone »

I have always understood record locking was stored in memory on the server. So I simply have clients re-boot the server and all is well.

I keep intending to explore a better solution to this.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: mechanism for locking records in a DBF file

Post by Horizon »

+1
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Post Reply