Connection Problem on Windows Mobile

Connection Problem on Windows Mobile

Postby sandy82 » Tue 21 Jun 2011 06:28


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,
Posts: 4
Joined: Mon 06 Jun 2011 07:24

Postby Shalex » Wed 22 Jun 2011 15:26

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 ( version of Devart.Data.PostgreSql.dll.
Devart Team
Posts: 7659
Joined: Thu 14 Aug 2008 12:44

Return to dotConnect for PostgreSQL