BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Paradox, BDE & lck files

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Lee J Cook
Guest





PostPosted: Wed Oct 15, 2003 12:29 pm    Post subject: Paradox, BDE & lck files Reply with quote



Hi,

I have a query regarding the lck files created by paradox db tables, in my
applications the user is sharing data across a network and I have set all
the BDE up to point to the same folder for the NET DIR etc and all works
fine except for one little niggle, if on of the PC's the network looses its
network connection or is shutdown incorrectly, sometimes the lck files are
left on the server or locally depending on what they are doing at the time
and when another PC on the network tries to run the applications with the
shared .db files an error occurs regarding directory is controlled by other
..net etc and it point the file to the folder where this rouge lck file is.

What I need to know is, is it safe to have my applications in a timer
checking the shared folder every second on the servers shared folders my
applications use and the local folders for any lck files and try to delete
them in a try..except. If the lck file is being used the delete of the file
will not happen.

Thanks in advance

Lee


Back to top
Bill Todd
Guest





PostPosted: Wed Oct 15, 2003 2:03 pm    Post subject: Re: Paradox, BDE & lck files Reply with quote



You can do that or you can have the first instance of your application
that starts try to delete the lock files.


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Lee J Cook
Guest





PostPosted: Wed Oct 15, 2003 3:39 pm    Post subject: Re: Paradox, BDE & lck files Reply with quote



Bill, thanks for the reply, just another quick question,

I have a toolbar that sits resident on the workstations desktop, would it be
save for a timer in the toolbar to check the folders for the lck files and
if there are any try and delete them as described before, also what about
the .net file on the server that all the workstations NET DIR is pointing
to, can I try and delete that if it is not in use, would you agree that
these steps might help with any problems regarding bde errors being thrown
up because of spurious lck files.

Thanks

Lee



"Bill Todd" <no (AT) no (DOT) com> wrote

Quote:
You can do that or you can have the first instance of your application
that starts try to delete the lock files.


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)



Back to top
Bill Todd
Guest





PostPosted: Wed Oct 15, 2003 4:29 pm    Post subject: Re: Paradox, BDE & lck files Reply with quote

Yes, it should be safe to attempt to delte both the lock files and
PDOXUSRS.NET.


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.