Question about record and file locking

Question about record and file locking

Postby driessen » Thu Nov 13, 2008 1: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby James Bott » Thu Nov 13, 2008 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby driessen » Thu Nov 13, 2008 5: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium



Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests