Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > .NET DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2002, 04:53 AM
walid76 walid76 is offline
Junior Member
 
Join Date: Aug 2002
Posts: 1
Default .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
Reply With Quote
  #2  
Old 09-04-2002, 07:20 AM
HTML HTML is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,977
Default 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.
Reply With Quote
  #3  
Old 09-04-2002, 11:21 AM
GeoWink GeoWink is offline
Senior Member
 
Join Date: Jan 2001
Posts: 885
Default 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
Reply With Quote
  #4  
Old 09-24-2009, 04:17 PM
Robert_Thompson Robert_Thompson is offline
Junior Member
 
Join Date: Sep 2009
Posts: 10
Default

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.

Last edited by Robert_Thompson; 09-24-2009 at 06:59 PM. Reason: Forgot something
Reply With Quote
  #5  
Old 10-13-2014, 05:26 AM
eshall eshall is offline
Junior Member
 
Join Date: Oct 2014
Posts: 1
Default Re: Fitness

I will let you know if this works for me Thanks and keep posting such a informative blogs
__________________
eshall
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:34 AM.


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