Unexpected server response

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
jkucera
Posts: 10
Joined: Wed 27 Jun 2007 08:39

Unexpected server response

Post by jkucera » Mon 03 Nov 2008 11:55

After upgrading to latest 3.75 provider I face numerous "Unexpected server response" when calling a command. Previously with older providers, everything worked fine and no changes in code were made, with the exception of pointing the application to new Corelab libraries.
The aplication is using shared connection in a shared class (vb.net). The errors are random - at startup everything works ok, then, after a while, it failes. No NAT in between.
Windows Vista 64, VS2008 SP1.

jkucera
Posts: 10
Joined: Wed 27 Jun 2007 08:39

More: Unexpected server response

Post by jkucera » Mon 03 Nov 2008 12:25

Just an additional info:
Interesting - when I put a DBMonitor component into the project and set it as active, everything seems to be working fine again, even if the DDBMonitor application isn't in place....

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 03 Nov 2008 12:41

Could you please provide us a small test project or steps to reproduce the error?

jkucera
Posts: 10
Joined: Wed 27 Jun 2007 08:39

Solved somehow...

Post by jkucera » Thu 13 Nov 2008 22:20

I probably found the reason for such behaviour - it was all because of multiple threads. I didn't realize that incorporating timer and raising custom events from its elapsed event would create a new thread...

Thanks anyway.

Post Reply