On Mon, 12 May 2014, Marco van de Voort wrote:

In our previous episode, Michael Van Canneyt said:

#0 HANDLEERRORADDRFRAME(201, 0x15ff0dc, 0x2e2f48) at ..\inc\system.inc:962
#1 HANDLEERRORFRAME(201, 0x15ff0dc) at ..\inc\system.inc:992
#2 fpc_rangeerror at ..\inc\system.inc:653
#3 CONNECT(0x2e72a8) at ..\source\ssockets.pp:860

That is the line:

   addr.sin_addr.s_addr := HostToNet(a.s_addr);

HostToNet is only defined for in_addr and longint, and s_addr is cuint32.

On all platforms ?

Strange then that this error didn't happen before. Well, a simple typecast will solve this.

Michael.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to