Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:42:16+00:00 2026-06-18T10:42:16+00:00

I built PostgreSQL ODBC driver in VS2008 , then run odbcad32.exe, create DSN and

  • 0

I built PostgreSQL ODBC driver in VS2008 , then run odbcad32.exe, create DSN and click on Test button. It works fine.
Then I copied folder and rebuilt it in VS2010, then did the same actions: I receive error message COuld not send query(Connection dead).

Then i made: compiled in VS2005 – all works.
In Vs2012 – does not work.
I checked in Debugger: yes, it is, socket was closed during the short query execution, button Test generates something like this sequence of queries:

set DateStyle to 'ISO'
....
set extra_float_digits to 2
...
[5912-1.471]CC_send_query: conn=04460048, query='select oid, typbasetype from pg_type where typname = 'lo''
[5912-1.472]send_query: done sending query 63bytes flushed
[5912-1.473]in QR_Constructor
[5912-1.473]exit QR_Constructor
[5912-1.473]read -1, global_socket_buffersize=4096
[5912-1.474]Lasterror=10035
[5912-1.474](5)Error while reading from the socket. ERRNO=10035
[5912-1.475]CC_error_statements: self=04460048
[5912-1.475]CONN ERROR: func=CC_send_query, desc='', errnum=107, errmsg='No response from the backend'
...
[5912-1.481]CC_lookup_characterset: entering...
[5912-1.481]CC_send_query: conn=04460048, query='select pg_client_encoding()'
[5912-1.482]CC_error_statements: self=04460048
[5912-1.482]CONN ERROR: func=CC_send_query, desc='', errnum=104, errmsg='Could not send Query(connection dead)'

What may be a reason of this different behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:42:17+00:00Added an answer on June 18, 2026 at 10:42 am

    The “problem” is that since VS2010 EWOULDBLOCK (defined in errno.h) != WSAEWOULDBLOCK, while developers relied on these two values to be the same, similar to:

    r = recv( ... );
    if (r == -1 && WSAGetLastError() == EWOULDBLOCK) { ... }
    

    What used to work with older version of VS, does not work anymore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a small inventory system using postgresql and psycopg2. Everything works great,
I have built a common app that works with PostgreSQL and should work on
My site, which is built on Python/Postgresql with django, has an area where you
I built a website and then deploy it on the server. But when i
i built my own infinitescroll similar to the google image search. Everythings works fine.
I've got a web-application which is built with Pyramid/SQLAlchemy/Postgresql and allows users to manage
We have 'Article' table in PostgreSQL db with following structure (simplified): CREATE TABLE article
I have to run a simulation with several postgresql databases spread on different machines
I am doing stress test with JMeter on web application (built with Spring, Struts2
I'm trying to test a small PostgreSQL setup, so I cobbled together a quick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.