Subject | RE: [IBO] I'm home now - Welcome back, and two questions ... |
---|---|
Author | Eric Tishler |
Post date | 2004-03-22T13:11:26Z |
Hi Jason,
I hope you enjoyed your leisure time in Amsterdam. Aside from the typical sordid attractions, there is actually some beautiful architecture and museums to be found in that area. I was there on business myself with my wife back in 1999.
The reason I am approaching you directly on this is two-fold. One - your invitation to do so to the general IBObjetcs community, and two - the fact that my posts in the forums remain un-replied to a week later.
The two posts 30111 and 30112 on March 15 are of great importance to me and are as follows ...
30111:
I have client server application that I am trying to make more
robust. Given a consistent connection, everything works the way it is
supposed to. However, if a network connection is dropped, I am trying
to create a graceful way to:
1) Detect the disconnect and put my clients in a corresponding
recognizable state
2) Automatically keep retrying to connect and once established, place
the client application back in service.
I have this working to a degree. I detects the disconnect and can
reestablish the connection as well. However, there is a small window
in which another network disconnect (during the initial reconnection)
throws the client application into a peculiar state in which I am no
longer able to reconnect.
I am using IB Objects and the connection I refer to is one using
IB_Connection to connect to a Firebird database that is
central/crucial to my application.
I have looked through the help files on IBO but cannot find a decent
reference on how to approach this problem. Any help you could provide would be greatly appreciated.
30112:
The following code segment was place in the OnTimer event that
running once every second. No matter the state of the connection,
this property always returns csConnected.
Am I doing something wrong, or is this not a good property to use?
with AdminDataForm.do
begin
case ConnectionStatus of
csDisconnected: lblConnectionStatus.Caption := 'Disconnected';
csDisconnectPending: lblConnectionStatus.Caption := 'DisconnectPending';
csDropPending: lblConnectionStatus.Caption := 'DropPending';
csForcedConnectPending: lblConnectionStatus.Caption := 'ForcedConnectPending';
csConnected: lblConnectionStatus.Caption := 'Connected';
csConnectPending: lblConnectionStatus.Caption := 'ConnectPending';
csCreatePending: lblConnectionStatus.Caption := 'ConnectPending';
else
lblConnectionStatus.Caption := 'Unknown';
end;
end;
Once again, any help you could provide would be GREATLY appreciated.
Thank you kindly,
Eric Tishler
Eric Tishler
Software Architect
Resolute Partners, LLC
Phone: 203.271.1122
Fax: 203.271.1460
etishler@...
-----Original Message-----
From: jwharton@... [mailto:jwharton@...]
Sent: Friday, March 19, 2004 6:22 PM
To: ibobjects@yahoogroups.com
Subject: [IBO] I'm home now
* I think I forgot to tell everyone here I would be away from home for a while. Sara (my wife) and I went to Amsterdam
where I presented a couple sessions at the SDGN CTTP event. We also took a few days leisure. It was a pretty nice
time.
Anyway, I'm home now and looking to get everything caught up. If anyone has any pressing issues I invite you to send
them to me privately with high priority.
Thanks,
Jason Wharton
www.ibobjects.com
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
* To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com <mailto:IBObjects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of <http://docs.yahoo.com/info/terms/> Service.
[Non-text portions of this message have been removed]
I hope you enjoyed your leisure time in Amsterdam. Aside from the typical sordid attractions, there is actually some beautiful architecture and museums to be found in that area. I was there on business myself with my wife back in 1999.
The reason I am approaching you directly on this is two-fold. One - your invitation to do so to the general IBObjetcs community, and two - the fact that my posts in the forums remain un-replied to a week later.
The two posts 30111 and 30112 on March 15 are of great importance to me and are as follows ...
30111:
I have client server application that I am trying to make more
robust. Given a consistent connection, everything works the way it is
supposed to. However, if a network connection is dropped, I am trying
to create a graceful way to:
1) Detect the disconnect and put my clients in a corresponding
recognizable state
2) Automatically keep retrying to connect and once established, place
the client application back in service.
I have this working to a degree. I detects the disconnect and can
reestablish the connection as well. However, there is a small window
in which another network disconnect (during the initial reconnection)
throws the client application into a peculiar state in which I am no
longer able to reconnect.
I am using IB Objects and the connection I refer to is one using
IB_Connection to connect to a Firebird database that is
central/crucial to my application.
I have looked through the help files on IBO but cannot find a decent
reference on how to approach this problem. Any help you could provide would be greatly appreciated.
30112:
The following code segment was place in the OnTimer event that
running once every second. No matter the state of the connection,
this property always returns csConnected.
Am I doing something wrong, or is this not a good property to use?
with AdminDataForm.do
begin
case ConnectionStatus of
csDisconnected: lblConnectionStatus.Caption := 'Disconnected';
csDisconnectPending: lblConnectionStatus.Caption := 'DisconnectPending';
csDropPending: lblConnectionStatus.Caption := 'DropPending';
csForcedConnectPending: lblConnectionStatus.Caption := 'ForcedConnectPending';
csConnected: lblConnectionStatus.Caption := 'Connected';
csConnectPending: lblConnectionStatus.Caption := 'ConnectPending';
csCreatePending: lblConnectionStatus.Caption := 'ConnectPending';
else
lblConnectionStatus.Caption := 'Unknown';
end;
end;
Once again, any help you could provide would be GREATLY appreciated.
Thank you kindly,
Eric Tishler
Eric Tishler
Software Architect
Resolute Partners, LLC
Phone: 203.271.1122
Fax: 203.271.1460
etishler@...
-----Original Message-----
From: jwharton@... [mailto:jwharton@...]
Sent: Friday, March 19, 2004 6:22 PM
To: ibobjects@yahoogroups.com
Subject: [IBO] I'm home now
* I think I forgot to tell everyone here I would be away from home for a while. Sara (my wife) and I went to Amsterdam
where I presented a couple sessions at the SDGN CTTP event. We also took a few days leisure. It was a pretty nice
time.
Anyway, I'm home now and looking to get everything caught up. If anyone has any pressing issues I invite you to send
them to me privately with high priority.
Thanks,
Jason Wharton
www.ibobjects.com
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
* To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com <mailto:IBObjects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of <http://docs.yahoo.com/info/terms/> Service.
[Non-text portions of this message have been removed]