 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daniel Olivares Guest
|
Posted: Wed Oct 29, 2003 8:07 pm Post subject: TDatabase Connection lost |
|
|
Hi. I'm using a TDatabase Component, and if i try to make any operation to
the database after the program has lost the db conection, then the
application just get closed widout any error message.
any idea on how can i know if the database connection is lost? like an event
or something? so i can reconnect?
thanks
--
Lic. Daniel Olivares
|
|
| Back to top |
|
 |
Robert Cerny Guest
|
Posted: Thu Oct 30, 2003 11:57 am Post subject: Re: TDatabase Connection lost |
|
|
Normally you get an exception, if you try a database operation after
connection lost. If the application is closed instead, you have a buggy
driver and you should upgrade BDE and the database driver.
--
Robert Cerny
DelphiShaman
"Daniel Olivares" <danielog76 (AT) hotmail (DOT) com> wrote
| Quote: | Hi. I'm using a TDatabase Component, and if i try to make any operation to
the database after the program has lost the db conection, then the
application just get closed widout any error message.
any idea on how can i know if the database connection is lost? like an
event
or something? so i can reconnect?
thanks
--
Lic. Daniel Olivares
|
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Fri Oct 31, 2003 8:41 pm Post subject: Re: TDatabase Connection lost |
|
|
In article <3fa01bd0$1 (AT) newsgroups (DOT) borland.com>, Daniel Olivares wrote:
| Quote: | Hi. I'm using a TDatabase Component, and if i try to make any operation to
the database after the program has lost the db conection, then the
application just get closed widout any error message.
|
That is not normal, unless you are keeping some essential information from us,
that is. If the DB stuff is done in a DLL an exception raised in the DLL could
kill the host app, for example.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
Daniel Olivares Guest
|
Posted: Tue Nov 04, 2003 5:43 pm Post subject: Re: TDatabase Connection lost |
|
|
No, all is into the exe. i have no dlls for the database connection, and the
point is for example. if i´m working connected toi the database, and then
disconect the network cable, and then i try to insert, read, refrech, or do
anything to the database, then the application just gets closed with no
errors.... i would really like to advise the user that the connection to the
database was lost and the try to reconnect.
or what kind of essential info do you mean?
--
Lic. Daniel Olivares
"Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> escribió en el mensaje
news:VA.0000a60a.00ac3fde (AT) nomail (DOT) please...
| Quote: | In article <3fa01bd0$1 (AT) newsgroups (DOT) borland.com>, Daniel Olivares wrote:
Hi. I'm using a TDatabase Component, and if i try to make any operation
to
the database after the program has lost the db conection, then the
application just get closed widout any error message.
That is not normal, unless you are keeping some essential information from
us,
that is. If the DB stuff is done in a DLL an exception raised in the DLL
could
kill the host app, for example.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Tue Nov 04, 2003 7:28 pm Post subject: Re: TDatabase Connection lost |
|
|
In article <3fa7e2fa$1 (AT) newsgroups (DOT) borland.com>, Daniel Olivares wrote:
| Quote: | No, all is into the exe. i have no dlls for the database connection, and the
point is for example. if i´m working connected toi the database, and then
disconect the network cable, and then i try to insert, read, refrech, or do
anything to the database, then the application just gets closed with no
errors.... i would really like to advise the user that the connection to the
database was lost and the try to reconnect.
or what kind of essential info do you mean?
|
In this context i was mainly aiming at the general layout of the app, e.g.
whether it is monolithic or several modules. Of course you also withheld any
detail about what database engine you are using. If you use the BDE, for
example, you in fact have a host app + DLL setup, since the BDE sits in a DLL
(several, in fact). I don't know enough about its internals to offer any
advice here. You may want to try b.p.d.database.desktop, or perhaps the
b.p.bde group.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
Daniel Olivares Guest
|
Posted: Tue Nov 04, 2003 7:42 pm Post subject: Re: TDatabase Connection lost |
|
|
ok thanks i'll try it
--
Lic. Daniel Olivares
"Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> escribió en el mensaje
news:VA.0000a62f.006752a6 (AT) nomail (DOT) please...
| Quote: | In article <3fa7e2fa$1 (AT) newsgroups (DOT) borland.com>, Daniel Olivares wrote:
No, all is into the exe. i have no dlls for the database connection, and
the
point is for example. if i´m working connected toi the database, and
then
disconect the network cable, and then i try to insert, read, refrech, or
do
anything to the database, then the application just gets closed with no
errors.... i would really like to advise the user that the connection to
the
database was lost and the try to reconnect.
or what kind of essential info do you mean?
In this context i was mainly aiming at the general layout of the app, e.g.
whether it is monolithic or several modules. Of course you also withheld
any
detail about what database engine you are using. If you use the BDE, for
example, you in fact have a host app + DLL setup, since the BDE sits in a
DLL
(several, in fact). I don't know enough about its internals to offer any
advice here. You may want to try b.p.d.database.desktop, or perhaps the
b.p.bde group.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| 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
|
|