Results 1 to 9 of 9

Thread: NetWork Connection not working sometimes?

Threaded View

  1. #1

    Thread Starter
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Resolved NetWork Connection not working sometimes?

    Hi, I have an application that uses several TCP and UDP connections (all as an array)
    I have one Main-application and several clients that connect to the Main (via a TCP connection, all with different SocketNr). For the development I use the loopback IP-address, so I have all applications on one computer (normally they are all seperated)
    All connections run normal as long as I run the application only once.
    But when closing the application and then restarting it happens (sometimes????) that a specific client won't connect. I can only get it to work again when restarting the computer, so I believe it'S a problem with sockets which are not cleared. Is their a way to find and clear blocked sockets?

    When closing the Main-application, all the clients are closed too (the Main application is closed by the MainForm_Unload which closes all connections before unloading himself, and the clients will run their MainForm_Unload in the winsock_close event).
    Last edited by opus; Mar 13th, 2007 at 10:20 AM.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width