T
Thos
When I debug a standard socket server app that has a tcplistener using
VS.NET 2005, the debugger deadlocks (uses 100% of one of my CPUs) when
the code runs the tcplistener.Start(). method. I am having the same
problem in a sample socket server app that uses socket.Bind(). Both
deadlock at this point. Both of them worked normally a week ago on a
fresh system (windows xp pro sp2. I have already completely
reinstalled my OS to get rid of this problem before, and now it's
occurring again. Any ideas why? When I stop debugging, it takes it
several minutes to get out of the debugging session and close the app.
Here's the area of code where the problem occurs:
listener = new TcpListener(IPAddress.Any,
details.Port);
***> listener.Start(backLog); <***
listener.BeginAcceptTcpClient(BeginConnection,
listener);
OR
FSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
***> FSocket.Bind(LocalEndPoint); <***
FSocket.Listen(FBackLog);
T
VS.NET 2005, the debugger deadlocks (uses 100% of one of my CPUs) when
the code runs the tcplistener.Start(). method. I am having the same
problem in a sample socket server app that uses socket.Bind(). Both
deadlock at this point. Both of them worked normally a week ago on a
fresh system (windows xp pro sp2. I have already completely
reinstalled my OS to get rid of this problem before, and now it's
occurring again. Any ideas why? When I stop debugging, it takes it
several minutes to get out of the debugging session and close the app.
Here's the area of code where the problem occurs:
listener = new TcpListener(IPAddress.Any,
details.Port);
***> listener.Start(backLog); <***
listener.BeginAcceptTcpClient(BeginConnection,
listener);
OR
FSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
***> FSocket.Bind(LocalEndPoint); <***
FSocket.Listen(FBackLog);
T