Hi,
I facing a situtation where HOpenConnection() does NOT return false even when there is no connection possible to the database. It look like some kind of cache problem or something like that.
First time I open a connection
I run some querys and so to present info to users on a big screen
Then I close the connection
Every 30 seconds the info is refresh using a timer. Again, HOpenConnection, show data, HCloseConnection.
Now I unplug the network. Wait for the next timer loop and then HOpenConnection still returns TRUE, indicating the connection is open?!?!
Also a HOpen(Tbl_License) returns TRUE.
However using the first real data access with HReadFirst there is finally an error. See below.
Why doesn't HOpenConnection return FALSE ??
native SQLSERVER access error.
Error Number = 117
Unable to open or read <Tbl_Licentie> file.
Error 80004005 returned by SQL Server
Description: Deferred prepare could not be completed.
SQL State:
SQL Error Number: 0
Sub-error #1
Description: Unable to open a logical session
SQL State: 08S02
SQL Error Number: -1
Sub-error #2
Description: SMux Provider: Physical connection is not usable
I facing a situtation where HOpenConnection() does NOT return false even when there is no connection possible to the database. It look like some kind of cache problem or something like that.
First time I open a connection
I run some querys and so to present info to users on a big screen
Then I close the connection
Every 30 seconds the info is refresh using a timer. Again, HOpenConnection, show data, HCloseConnection.
Now I unplug the network. Wait for the next timer loop and then HOpenConnection still returns TRUE, indicating the connection is open?!?!
Also a HOpen(Tbl_License) returns TRUE.
However using the first real data access with HReadFirst there is finally an error. See below.
Why doesn't HOpenConnection return FALSE ??
native SQLSERVER access error.
Error Number = 117
Unable to open or read <Tbl_Licentie> file.
Error 80004005 returned by SQL Server
Description: Deferred prepare could not be completed.
SQL State:
SQL Error Number: 0
Sub-error #1
Description: Unable to open a logical session
SQL State: 08S02
SQL Error Number: -1
Sub-error #2
Description: SMux Provider: Physical connection is not usable