Subject Re: [IBO] How to auto reconnect after server crash
Author Jason Wharton
Don't close or force disconnection in the OnError event. This is right in
the middle of some data processing. Set a flag, raise an exception and then
in your exception handling after the data request has unwound the callstack
then force the connection closed or whatever.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


----- Original Message -----
From: "Helen Borrie" <helebor@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, March 06, 2003 5:20 AM
Subject: Re: [IBO] How to auto reconnect after server crash


> At 06:59 AM 5/03/2003 -0800, you wrote:
> >How do you reconnect an IBConnection that was connected when the IB
Server
> >has been shut down and restarted?
> >The On Error event is triggered. But trying to close or open the
> >IBConnection does not work.
> >Any suggestions appreciated.
>
> Have you tried ForceDisconnect?
>
> Helen