Discussion:
GNAT Sockets UDP problem on Windows 10.
(too old to reply)
Petter Fryklund
2018-11-23 06:27:43 UTC
Permalink
Hi all,

I get socket error 10051, network unreachable when trying to send on Windows 10. Everything works fine on Windows 7. Also, Delphi programs work fine on Windows 10. What is special with GNAT Sockets and what do I do to overcome this hurdle?

Regards,
Petter
Petter Fryklund
2018-11-23 08:41:15 UTC
Permalink
Post by Petter Fryklund
Hi all,
I get socket error 10051, network unreachable when trying to send on Windows 10. Everything works fine on Windows 7. Also, Delphi programs work fine on Windows 10. What is special with GNAT Sockets and what do I do to overcome this hurdle?
Regards,
Petter
When creating the reproducer I first found out that I mistakenly had copied code from a TCP client that also did Connect. When that was fixed I found that I had made an unnecessary Bind of the sending socket (as a response to the compiler warning that the socket was read but not initialized), strangely this was alright on W7, but not on W10. We are now fine (for now ;-)

Regards,
Petter

Loading...