Subject Re: [IBO] TIB_ConnectionStatus
Author Helen Borrie
At 10:12 AM 28-07-02 +0200, you wrote:
>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?

No. It's a logical setting, i.e. the Connect method sends the API call
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...

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