Page 1 of 1

Connection to be disabled on compile and run

Posted: Mon 17 Mar 2014 13:39
by piopio1
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

Re: Connection to be disabled on compile and run

Posted: Wed 19 Mar 2014 13:08
by AlexP
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.

Re: Connection to be disabled on compile and run

Posted: Wed 19 Mar 2014 21:35
by piopio1
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

Re: Connection to be disabled on compile and run

Posted: Thu 20 Mar 2014 10:20
by AlexP
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.