I'm using winsock to send data between 2 pcs, but if I close the program the process remains in the memory. I suppose there is a problem closing the connection/port. The program does shutdown correctly without the ".bind", but I need that in my program.


VB Code:
  1. Winsock1.Protocol = sckUDPProtocol
  2. Winsock1.Bind 1000
  3.  
  4. ' ...OTHER CODE...
  5.  
  6. Winsock1.Close
  7. Winsock1.Localport = 0