FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about record and file locking
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about record and file locking
Posted: Thu Nov 13, 2008 01:48 PM

Hello,

If a record or a file has been locked by another user, is there a way that I can force an unlock ?

Thanks a lot for any help.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Question about record and file locking
Posted: Thu Nov 13, 2008 03:42 PM

Not that I know of. This is a good reason to use optimistic locking (lock after editing). Then the record is only locked for a split second.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about record and file locking
Posted: Thu Nov 13, 2008 05:06 PM

James,

Thanks for your answer.

But suppose that my application results in an error, after which the application is quited.

What happens to locked records or files ? Are they unlocked automatically ?

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Question about record and file locking
Posted: Thu Nov 13, 2008 05:19 PM

Yes.

EMG

Continue the discussion