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 

TDatabase Connection lost

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Daniel Olivares
Guest





PostPosted: Wed Oct 29, 2003 8:07 pm    Post subject: TDatabase Connection lost Reply with 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
Robert Cerny
Guest





PostPosted: Thu Oct 30, 2003 11:57 am    Post subject: Re: TDatabase Connection lost Reply with quote



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





PostPosted: Fri Oct 31, 2003 8:41 pm    Post subject: Re: TDatabase Connection lost Reply with quote



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





PostPosted: Tue Nov 04, 2003 5:43 pm    Post subject: Re: TDatabase Connection lost Reply with 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?

--
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





PostPosted: Tue Nov 04, 2003 7:28 pm    Post subject: Re: TDatabase Connection lost Reply with quote

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





PostPosted: Tue Nov 04, 2003 7:42 pm    Post subject: Re: TDatabase Connection lost Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using 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.