executedirect timeout
Posted: 11.09.2010, 19:16
I am rewriting a cashregister POS program that was originally written in C++ into Lazarus
Everything working well with exception of handling network failures to a remote Postgres database.
If the network goes down while trying to connect to the ZConnection an exception occurs correctly after the preset timeout.
If the connection opens correctly then the network plug is pulled prior to performing a Zconection.executedirect('update table set .....) statement then the program hangs and never returns even after network is reestablished.
It seems the network connection timeout does not function when performing an executedirect.
Any help would be appreciated.
Everything working well with exception of handling network failures to a remote Postgres database.
If the network goes down while trying to connect to the ZConnection an exception occurs correctly after the preset timeout.
If the connection opens correctly then the network plug is pulled prior to performing a Zconection.executedirect('update table set .....) statement then the program hangs and never returns even after network is reestablished.
It seems the network connection timeout does not function when performing an executedirect.
Any help would be appreciated.