WinSocket Error 10048


I get this error when a restart a program immediately after program end.
When I wait for about 5 seconds between program end and restart the
error does not occur.
The program uses TServerSocket within a TDataModul.

I tried:
  delete SocketModul->ServerSocket;
  delete SocketModul;
it does not help.

How can I destroy/free the Socket object?


< 1K Download