Hi,

Στις 12/5/2014 10:11 πμ, ο/η Michael Van Canneyt έγραψε:


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.

you're correct if changed it to

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

i get a 504 Error also.

regards,

--
Dimitrios Chr. Ioannidis

Attachment: smime.p7s
Description: Κρυπτογραφημένη υπογραφή S/MIME

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

Reply via email to