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 

Network database files

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
danny
Guest





PostPosted: Sat Jan 03, 2004 2:08 am    Post subject: Network database files Reply with quote



Hello,

My application accesses dBASE database files on a network drive. When the PC
containing those database files is shut down. My application behaves
adnormally, I understand that because my application can't access to the
database files, or there are some temparory results fragments left before
that PC is shut down. But after the PC is up again, I still can't operate
normally, why??

I want to know is there any method that can know when the connectioin
between my application and the database files is lost so that I can give out
warnings to the customer instead of strange exceptions?? And how to make the
application runs normally if the network connection is resumed??

I am using BDE with Borland C++ Builder 4.0

Thank you,

Danny


Back to top
Micha Nelissen
Guest





PostPosted: Sat Jan 03, 2004 9:07 am    Post subject: Re: Network database files Reply with quote



danny wrote:

Quote:
Hello,

My application accesses dBASE database files on a network drive. When the PC
containing those database files is shut down. My application behaves
adnormally, I understand that because my application can't access to the
database files, or there are some temparory results fragments left before
that PC is shut down. But after the PC is up again, I still can't operate
normally, why??

Doesn't closing and opening the file work? Also check if in windows the
network drive is still 'connected', if windows thinks it's unavailable
it won't restore the connection automatically, only if you click on the
drive in explorer.

HTH,

Micha.

Back to top
Dwayne
Guest





PostPosted: Mon Jan 12, 2004 8:17 pm    Post subject: Re: Network database files Reply with quote



Danny>>My application accesses dBASE database files on a network drive. When
the PC
containing those database files is shut down. My application behaves
adnormally, <<

That is correct....You still have flags out for those files, and
your computer is trying to
access the file. (Open Files). It may even lock up and die on you. Make
sure you exit
your program first, before shutting down the PC with the files.

Danny >> But after the PC is up again, I still can't operate
normally, why??<<

You have created 2 files Paradox.lck and Pdocusrs.lck.
Get everyone out who is using the Dbase, and delete these two files.

Eventhough theses say "Paradox" they are also used for your DBASE
files too.

Use a "Flush" after every write, so that your computer will not
"Hold" the data in memory, and not write it to the file. Another way, is to
activate the sharing on the BDE. I preferr the flush...But to each their
own.


Dwayne


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.