Socket Error on connect

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mrtblt
Posts: 8
Joined: Thu 16 Dec 2010 10:26

Socket Error on connect

Post by mrtblt » Fri 07 Jan 2011 16:05

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?

stevel
Posts: 125
Joined: Tue 02 Nov 2010 19:01

Post by stevel » Fri 07 Jan 2011 17:01

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.

AndreyZ

Post by AndreyZ » Mon 10 Jan 2011 15:47

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.

Post Reply