Re: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- From: "Scott" <Spam@xxxxxxxxxxxx>
- Date: Wed, 20 Dec 2006 15:42:37 +1100
GetHostEntry(String) works where String = "MyPPC" (for example), but not
"dtpt_peer"
"Scott" <Spam@xxxxxxxxxxxx> wrote in message
news:eWcq5p%23IHHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
Using C#, .Net CF 2.0, WM 2005 on Symbol MC9090
IPHostEntry Dns.GetHostEntry (String)
Throws:-
{System.Net.Sockets.SocketException: The system detected an invalid
pointer address in attempting to use a pointer argument in a call
at System.Net.Dns.ResolveInternal()
at System.Net.Dns.GetHostEntry()
The SocketException contains an ErrorCode (0x0000271e) that equates to the
following socket error:-
The system detected an invalid pointer address in attempting to use a
pointer argument of a call. This error occurs if an application passes an
invalid pointer value, or if the length of the buffer is too small. For
instance, if the length of an argument, which is a sockaddr structure, is
smaller than the sizeof(sockaddr).
The same call works on PPC 2003.
Can anyone shed any light on this?
.
- Follow-Ups:
- Re: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- From: Peter Foot [MVP]
- Re: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- References:
- Prev by Date: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- Next by Date: Re: Help for Marshalling
- Previous by thread: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- Next by thread: Re: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
- Index(es):
Relevant Pages
|