"Sagaert Johan" <RE************ *******@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
i get this error if i write this :
using System.Net.Sock ets;
...
...
TcpClient tcp;
tcp=new TcpClient();
An unhandled exception of type 'System.Net.Soc kets.SocketExce ption'
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.N et.Sockets.Addr essFamily.Inter Network,System. Net.Sockets.Soc k
etType.Stream,S ystem.Net.Socke ts.ProtocolType .Tcp);
Yields this runtime error
An unhandled exception of type 'System.Net.Soc kets.SocketExce ption' 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.TypeIni tializationExce ption' occurred
in WindowsApplicat ion4.exe
Additional information: The type initializer for "System.Net.Soc kets.Socket"
threw an exception.