Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   .NET DB-Aware (http://www.delphipages.com/forum/forumdisplay.php?f=11)
-   -   .Net &.LCK file In paradoxe DB (http://www.delphipages.com/forum/showthread.php?t=66830)

walid76 09-04-2002 04:53 AM

.Net &.LCK file In paradoxe DB
 
hello
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

HTML 09-04-2002 07:20 AM

RE: .Net &.LCK file In paradoxe DB
 
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.
http://community.borland.com/article/0,1410,15247,00.html

Hope this helps.

P.S
In the future you may also want to search the forum, this question has been asked a couple of times.

GeoWink 09-04-2002 11:21 AM

RE: .Net &.LCK file In paradoxe DB
 
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.

George

Robert_Thompson 09-24-2009 04:17 PM

Here is the code we use, placed in the first form opened:

procedure TMenuForm.FormCreate(Sender: TObject);
var
Dir: string;
begin
Dir := 'C:\Priv\appname';
ForceDirectories(Dir);
session.PrivateDir := 'C:\Priv\appname';
Session.NetFileDir := 'H:\Net\appname';

end;

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.

HTH,

Rob.

eshall 10-13-2014 05:26 AM

Re: Fitness
 
I will let you know if this works for me Thanks and keep posting such a informative blogs


All times are GMT. The time now is 08:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.