Subject | Re: [IBO] Connected remains True |
---|---|
Author | Andreas Bednarek |
Post date | 2004-01-21T09:30:05Z |
> It shows true because it still has the handle it formerly received. If ato
> connection fails you need to be in control of calling Disconnect in order
> clean things up, etc. If I were to do that automatically I may not do itas
> you would like.Yes I understand that, but how can I know that a connection failed then?
>
If using exceptions, by calling Disconnect within TIBODatabase.OnError event
handler a nasty modal dialog occurs ('Dataset is currently fetching'). This
is my whole problem, else I could do things this way, although some property
to realise the current state (something like the ConnectionWasLost) would be
great! I played with ConnectionState, but for me it only showed two values
csConnected, csConnectPending and somehow I didn't solve the problem
refering to this prop. ...?
Please can you give me some hints how things are solved?
Thank you very much
Andreas
> ----- Original Message -----exceptions
> From: "Andreas Bednarek" <bluehorse@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Tuesday, January 20, 2004 10:10 AM
> Subject: [IBO] Connected remains True
>
>
> > Hello everyone,
> >
> > TIBODatabase.Connected remains True also if the connection with the
> database
> > has been lost.
> >
> > Is it a bug?
> >
> > How can I know, that the connection has been lost? Listening to
> > on table access and trying to reconnect within the concept of thoseshows
> > some side effects. There is a property documented,IBO4.2.
> > TIBODatabase.ConnectionWasLost, but is probably not implemented in
> >modal
> > Please help, I'm not able to reconnect to a database without a nasty
> > dialog 'Dataset is currently fetching'. (As you can read in some of my___________________________________________________________________________
> > previous messages 'How to reconnect to DB'(' II'). If you wish to repost
> > them please tell me!)
> >
> > Why shouldn't the Connected property reflect an established connection
> > (maybe for some seconds at least)? If the appropriate sockets get
> > disconnected I think you should definitely be able to realise that...?.
> >
> > I'm using IBO4.2 with FB1.5 RC8, Delphi4.
> >
> > Thank you very much
> > Andreas
> >
>
>
>
> IB Objects - direct, complete, custom connectivity to Firebird orInterBase
> without the need for BDE, ODBC or any other layer.___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO community resource for Tech Infopapers,
> keyword-searchable FAQ, community code contributions and more !
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/IBObjects/
>
> To unsubscribe from this group, send an email to:
> IBObjects-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>