Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SocketException - unknown error 0x2740 on Win98 but not on WinXP or Win2000 ...

142 views
Skip to first unread message

Doug Wetherill

unread,
Oct 28, 2002, 10:50:11 AM10/28/02
to
I have an application that successfully runs under Windows XP and Windows
2000 but fires a SocketException under Windows 98:

Unhandled Exception: System.Net.Sockets.SocketException: Unknown error
(0x2740)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start()
at MyCompany.MyProduct.Ipc.Sockets.Server.CMySocketServer.TcpListener()

Any ideas?


Doug Wetherill

unread,
Oct 28, 2002, 12:46:22 PM10/28/02
to
Refer to "Windows Sockets Error Codes", 0x2740 = 10048, a.k.a.,
WSAEADDRINUSE.

"Doug Wetherill" <m...@petcominc.com> wrote in message
news:ukzcOmpfCHA.1768@tkmsftngp11...

CHRIS MORSE

unread,
Oct 29, 2002, 10:10:52 AM10/29/02
to


The error looks like it is in the Bind() function, which probably
means that your Win98 machine already has something running on that
port. Though, why the exceptions comes up as "Unknown error" I don't
know. I'm a bit new to this too.

// CHRIS

0 new messages