"Sagaert Johan" <RE*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i get this error if i write this :
using System.Net.Sockets;
...
...
TcpClient tcp;
tcp=new TcpClient();
An unhandled exception of type 'System.Net.Sockets.SocketException'
occurred in system.dll
Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
Any hints ?
When creating a simple Socket i got something similar , i guess something is
wrong on my system
Socket sok;
sok=new
Socket(System.Net.Sockets.AddressFamily.InterNetwo rk,System.Net.Sockets.Sock
etType.Stream,System.Net.Sockets.ProtocolType.Tcp) ;
Yields this runtime error
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred
in system.dll
Additional information: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was
full
when i hit continue, this one pops up
An unhandled exception of type 'System.TypeInitializationException' occurred
in WindowsApplication4.exe
Additional information: The type initializer for "System.Net.Sockets.Socket"
threw an exception.