Board index » delphi » How to handle lost connection to paradox database (network failour)
Henrik Nedergaard
![]() Delphi Developer |
Tue, 12 Oct 2004 05:22:42 GMT
|
Henrik Nedergaard
![]() Delphi Developer |
Tue, 12 Oct 2004 05:22:42 GMT
How to handle lost connection to paradox database (network failour)
Hi Everybody
I'm having a problem handling of communication failour to my paradox tables. My database is places on a network share. Either a mapped drived or a UNC The access to the database is working correct. Ok, here's the problem. If a network problem arises and the connection to the database is lost, Does anyone have any solution for that? regards |
Finn Tolderlun
![]() Delphi Developer |
Tue, 12 Oct 2004 16:25:25 GMT
Re:How to handle lost connection to paradox database (network failour)Fix the network problem. -- Finn Tolderlund "Henrik Nedergaard" <itserv...@mail.dk> skrev i en meddelelse Quote> If a network problem arises and the connection to the database is lost, |
Henrik Nedergaar
![]() Delphi Developer |
Tue, 12 Oct 2004 16:54:42 GMT
Re:How to handle lost connection to paradox database (network failour)Quote> Fix the network problem. Henrik |
Finn Tolderlun
![]() Delphi Developer |
Tue, 12 Oct 2004 18:41:09 GMT
Re:How to handle lost connection to paradox database (network failour)A good answer IMHO. The problem is the network. Fix the problem. -- Finn Tolderlund "Henrik Nedergaard" <itserv...@mail.dk> skrev i en meddelelse Quote> > Fix the network problem. |
Henrik Nedergaar
![]() Delphi Developer |
Tue, 12 Oct 2004 20:09:33 GMT
Re:How to handle lost connection to paradox database (network failour)Quote> A good answer IMHO. least the one I intended to get an answer for) Quote> The problem is the network. appox. a minute then the problem is mine if you ask a customer (have you ever tried that?) Quote> Fix the problem. henrik |
Leslie Milbur
![]() Delphi Developer |
Tue, 12 Oct 2004 20:19:14 GMT
Re:How to handle lost connection to paradox database (network failour)Hi Henrik, The "hanging" you are talking about may acutally be caused by Windows So now looking at your application, obviously when the network How to solve this problem ? Well you really need to try and understand why the network connection So in truth a flakely network connection is pretty useless. QuoteHenrik Nedergaard <itserv...@mail.dk> wrote in message Quote> Hi Everybody |
Finn Tolderlun
![]() Delphi Developer |
Tue, 12 Oct 2004 21:45:05 GMT
Re:How to handle lost connection to paradox database (network failour)"Henrik Nedergaard" <itserv...@mail.dk> skrev i en meddelelse news:3cc94470_1@dnews... Quote> > A good answer IMHO. You have to realize that you can't solve a problem by trying to fix something that isn't broken. Quote> > The problem is the network. In my experience when you accept a problem which really isn't your problem, the problem just grows bigger and that will cause problems with the relation between you and your customer. If you convince your customer that it is your problem they will get angry with you when they discover that you can't fix the problem nomatter what you do. The only way is to tell your customer what the problem is and what *they* should do to fix it. It's their problem, not yours. Do yourself and your customer a faviour and say that. The problem won't go away by putting a bandaid on your software. The problem will just grow bigger. Quote> > Fix the problem. look at it. -- Finn Tolderlund |
Henrik Nedergaar
![]() Delphi Developer |
Tue, 12 Oct 2004 21:50:29 GMT
Re:How to handle lost connection to paradox database (network failour)Quote> The "hanging" you are talking about may acutally be caused by Windows the "hung up app". Quote> How to solve this problem ? that my application terminates when the user clicks OK on my errordialog in stead of terminating to app stays on the windows processbar (and taskmanager) for about one minute. I have traced my app. and all threads, forms aso. terminates perfect except from the datamodule when it closes the session of the "lost" database. I though of doing some sucide actions but that would probably create even more problems. I guess what i have to understand here is that I cannot make my app. better Thanks |
Team
![]() Delphi Developer |
Tue, 12 Oct 2004 23:00:32 GMT
Re:How to handle lost connection to paradox database (network failour)No, there is no solution for that other than Finn's. The timeout is controlled by the network software. There may be some way to change that for all applications but that is not a solution. If you shorten it you will just get false timeouts if the network is busy. The larger problem is that if the network connection is going down and you are using a file server database, such as Paradox, sooner or later you will get corrupt tables or indices. If you were using a database server with transaction support you would not have to worry about corrupting the database or leaving the data in an inconsistent state. In that case an unstable network would not be as big a problem. However, in your case Finn is right; you need to fix the problem. -- |
1. Gracefully Handle Lost Network Connections?
2. Initialize database connection on Lost connection problem
3. How To Handle Lost Connection?
4. Network Connection Lost on NT
5. BDE problems with lost network connection - revisited
6. lost update in unix-network on paradox-tables
7. Losing Connection To Paradox Table
8. Interbase: Database connection Lost