Page 1 of 1

Socket Error on connect

Posted: Fri 07 Jan 2011 16:05
by mrtblt
My database is firebird and my program is configured to run with embedded firebird.

When i try to run this program in another computer i receive the following error
Exception Eunierror in module neyworks.exe at etc.
Socket error on connect. WSAGetLastError return 10061 ($274D)
How may i resolve it?

Posted: Fri 07 Jan 2011 17:01
by stevel
Socket' error indicates that it is trying to make a connection to a server port.

Check to see that it is really using embedded method to connect, and not server ie. Server property should be empty.

Posted: Mon 10 Jan 2011 15:47
by AndreyZ
Hello,

If you are using Firebird embedded you should distribute the fbembed.dll library with your application. For more information please read the README_embedded.txt file in the %Firebird_Embedded_Install_Directory%\Doc directory. To make UniDAC use embedded library that you distribute with your application you should set the TUniConnection.SpecificOptions.ClientLibrary option to .\fbembed.dll. In this case UniDAC will use fbembed.dll that is located in the root of your application. And also, as Stevel said, check that the TUniConnection.Server property is blank.