Subject | Re: [IBO] TIB_ConnectionStatus |
---|---|
Author | Helen Borrie |
Post date | 2002-07-29T07:49:50Z |
At 10:12 AM 28-07-02 +0200, you wrote:
that causes the client to connect to the database and Disconnect sends the
call to disconnect.
The software is not aware of the situation if you physically detach the
client machine from the LAN - there is no message delivered to ??? that
says "Good-bye, I'm yanking the plug." All it can do is what the
application tells it to do and return an error if it can't physically carry
it out. So - you need to explicitly call Disconnect if you are about to
yank the plug.
A successful call to Connect() causes Connected to be true. A successful
call to Disconnect causes Connected to be False. Everything else is a
potential error situation, which your application should test for if you
have users who are likely to unplug their workstations or even just crash
out of applications...
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com
>Hi,No. It's a logical setting, i.e. the Connect method sends the API call
>
>Why do I get a Connection status of csConnected when I test the status in
>the OnError event after purposefully disconnecting from the LAN? Does the
>'ConnectionStatus' have to be refreshed? Should I not be using this property
>to determine the actual connection status?
that causes the client to connect to the database and Disconnect sends the
call to disconnect.
The software is not aware of the situation if you physically detach the
client machine from the LAN - there is no message delivered to ??? that
says "Good-bye, I'm yanking the plug." All it can do is what the
application tells it to do and return an error if it can't physically carry
it out. So - you need to explicitly call Disconnect if you are about to
yank the plug.
A successful call to Connect() causes Connected to be true. A successful
call to Disconnect causes Connected to be False. Everything else is a
potential error situation, which your application should test for if you
have users who are likely to unplug their workstations or even just crash
out of applications...
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com