View Full Version : .Net &.LCK file In paradoxe DB
09-04-2002, 03:53 AM
when i use paradoxe in network some application can not run and gifs the message "database loocked by another .net file..."
what is this broblem and how can i repar it?
pleas help quickly & thanks
Hello & welcome to the forum.
You should scan all folders where the Tables recide and check and delete files named Paradox.lck and Pdoxusrs.lck, before you open any Tables.
Also reading this article is recommended if you have a client server application.
Hope this helps.
In the future you may also want to search the forum, this question has been asked a couple of times.
09-04-2002, 10:21 AM
Be sure that each user PC has the BDE installed, if that is what you are using, and that all of them point to the same location for the .NET file. That is important. If this is not the case you will get all kinds of LCK files left and users won't be able to use the app.
09-24-2009, 03:17 PM
Here is the code we use, placed in the first form opened:
procedure TMenuForm.FormCreate(Sender: TObject);
Dir := 'C:\Priv\appname';
session.PrivateDir := 'C:\Priv\appname';
Session.NetFileDir := 'H:\Net\appname';
The directory 'C:\Priv\appname' is created on every PC when the app is first run.
We created, manually, 'H:\Net\appname'. (H is our network drive)
The pdoxusrs.net file is created in 'H:\Net\appname' automatically when the app starts.
I think that you should delete all PDOXUSRS.NET and PDOXUSRS.LCK files before you implement this change.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.