Intermittent Socket Exception
- From: "QDL" <dummy@xxxxxxxxx>
- Date: Tue, 25 Sep 2007 09:31:33 +0200
Hello everyone,
i have a windows services (framework 1.1) that uses a socket to send
Multicast UDP Datagrams. On one particular server (HP with Windows 2003
x64), sometimes i get an exception:
SocketException: The requested address is not valid in its context.
I believe the offending lines are this ones:
UdpSender = New Socket(AddressFamily.InterNetwork, SocketType.Dgram,
ProtocolType.Udp)
UdpSender.Bind(New IPEndPoint(LocalAddress, LocalPort))
I know that exception is raised when you use an invalid IP/Port, the problem
is that I checked that LocalAddress and LocalIP are ALWAYS the same, but
sometimes i get the exception. Also we suspect this problem is causing a
memory leak...
Any idea?
TIA
Paolo
.
- Follow-Ups:
- Re: Intermittent Socket Exception
- From: Arkady Frenkel
- Re: Intermittent Socket Exception
- Prev by Date: WSALookupServiceBegin problem in Bluetooth!
- Next by Date: Re: Problems using UNC address
- Previous by thread: WSALookupServiceBegin problem in Bluetooth!
- Next by thread: Re: Intermittent Socket Exception
- Index(es):
Relevant Pages
|
|