Connection Problem on Windows Mobile

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
sandy82
Posts: 4
Joined: Mon 06 Jun 2011 07:24

Connection Problem on Windows Mobile

Post by sandy82 » Tue 21 Jun 2011 06:28

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

Shalex
Site Admin
Posts: 8241
Joined: Thu 14 Aug 2008 12:44

Post by 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 (5.30.172.1) version of Devart.Data.PostgreSql.dll.

Post Reply