Page 1 of 1

Connection Problem on Windows Mobile

Posted: Tue 21 Jun 2011 06:28
by sandy82
Hello,

I have an application written in C# using dotConnect for PostgreSQL 5.30 Mobile Trial and running on windows mobile 6.5.
The problem occurs whenever the mobile device temporarily looses a connection to the wireless network. The first query after the connection is restored results in the following error:
"unable to write data to the transport connection".
All subsequent queries work fine. I have tried to ping the server before each query and the ping is returned successfully.
What could be the problem?

Thank you,
Sandy

Posted: Wed 22 Jun 2011 15:26
by Shalex
Please make sure that PgSqlConnection.Ping() returns True before running a query (if it returns False do Close()/Open() untill the return value of Ping() is True). In this case I cannot reproduce the problem with the latest (5.30.172.1) version of Devart.Data.PostgreSql.dll.