I have developed a server/client application. Everythnig is cool but whenever the internet connection is halt or no connection. It show the error message from try/catch and if internet problem is ok and there is connection, program is continue normally but sometimes it is halt.If the error closed this application or I push the close button, windows form is closed but program still runnig in the background and whenever I try to open new program, it get the tcp/ip port problem because I still runnig and use this special port. I know it use the thread and has endless while loop for listen the port but I want to use this problem. When I close it or close wtih program error. I want It does not work on background.
Thank you...