Connection to be disabled on compile and run

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Connection to be disabled on compile and run

Post by piopio1 » Mon 17 Mar 2014 13:39

Hello,

I have the PgConnection.active=true during design time but when I compile and run the application I am developing, I have to disconnect it otherwise I get the error message 'Socket error on binding WSAGetLastError....'.

How can I keep the PgConnection active on design time and make sure it is deactivated automatically when I compile and run the application ? I tried switching on and off PgConnection.Option.KeepDesignConnected but it doesn't work.


Many thanks
Pio Pio

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

Re: Connection to be disabled on compile and run

Post by AlexP » Wed 19 Mar 2014 13:08

Hello,

We cannot reproduce the problem on the latest PgDAC version 4.2.6, If you are using an older PgDAC version, please update to the latest version and try to reproduce the problem on it. This problem is reproduced on the latest version after setting the KeepDesignConnected property to False. Please contact us again.

piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Re: Connection to be disabled on compile and run

Post by piopio1 » Wed 19 Mar 2014 21:35

Hello Alex,

I installed PgDAC version 4.2.6, set KeepDesignConnected to False but I have the same issue.

Any other idea ?

Many thanks
Pio Pio

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

Re: Connection to be disabled on compile and run

Post by AlexP » Thu 20 Mar 2014 10:20

We cannot reproduce the problem. The problem is most probably not due to establishing connection to PostgreSQL in TPgConnection, but due to establishing connection to the SSH server.

Post Reply