Error #11001 at connect

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Adrian
Posts: 4
Joined: Thu 09 Dec 2010 11:25

Error #11001 at connect

Post by Adrian » Thu 09 Dec 2010 11:54

Hi All,

I have a problem when executing an application from IDE but not when executing the [same] exe file outside IDE.
The error is:
"Cannot connect to database
Socket error connect. WSAGetLastError return 11001($2AF9)".

I get this error even with the demo application (Failover, PgDacDemo), when trying to execute Pg_Conn.Connect

Everything was fine until I write a [simple] report with Rave.

Windows XP
Delphi 2010
PgDac 1.20.0.19
Postgres 9.0

connection on localhost


Thanks in advance.

Adrian

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 09 Dec 2010 14:39

Hello,

I can not reproduce the problem.
Please download the latest version of PgDAC (2.00.0.3) and try again.

Adrian
Posts: 4
Joined: Thu 09 Dec 2010 11:25

Post by Adrian » Thu 09 Dec 2010 22:43

Hello,

I've reinstalled Delphi 2010 and PgDac and the problem persist (with Failover). Is it possible to remain some values/settings in the registry or elsewhere?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 10 Dec 2010 09:44

Hello,

Unfortunately I still can not reproduce the problem.
I have tested it on the same configuration as you specified, but all works fine.
Please create a new project, place the TPgConnection component onto the form, set only its connection property, and press the Connect button. If you can connect, try to run the application from the IDE and try to connect in the run-time mode.
If you can't connect in any mode (run-time and design-time), please contact me again.

The error (WSAGetLastError return 11001) is indicates that Host was not found. Please check what you set the correct Host name (in your case it should be localhost or 127.0.0.1).

Post Reply