 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lee J Cook Guest
|
Posted: Wed Oct 15, 2003 12:29 pm Post subject: Paradox, BDE & lck files |
|
|
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
|
Posted: Wed Oct 15, 2003 2:03 pm Post subject: Re: Paradox, BDE & lck files |
|
|
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
|
Posted: Wed Oct 15, 2003 3:39 pm Post subject: Re: Paradox, BDE & lck files |
|
|
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
|
Posted: Wed Oct 15, 2003 4:29 pm Post subject: Re: Paradox, BDE & lck files |
|
|
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 |
|
 |
|
|
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
|
|