?
=?iso-8859-1?Q?Bj=F8rn_Eliasen?=
Hi,
I have an application running on all pc's in our company. Basically it is a TCPListener awaiting for sockets to connect and on connection performs the required tasks. The app works fine, but while the listener is awaiting for socket to connect several other applications can't start, and even installation of new applications migth hang. In order to finalise the other apps or installations the tcp listener is killed resulting in the other apps and installs to complete.
A scannig of ports indicates that the port used (2000) is free.
The application has two threeads. The listener thread described above and an other thread for managing user interaction using the systray. The listener thread has initially loaded a form, which is hidden while waiting for new sockets to connect.
Here is a some of the code:
Dim ip As IPAddress
ip = IPAddress.Any
tcplistener = New TcpListener(ip, myPort)
tcpListener.Start()
While True
Dim socket As Socket = tcpListener.AcceptSocket()
Any suggestions will be appriciatd.
Bjørn
I have an application running on all pc's in our company. Basically it is a TCPListener awaiting for sockets to connect and on connection performs the required tasks. The app works fine, but while the listener is awaiting for socket to connect several other applications can't start, and even installation of new applications migth hang. In order to finalise the other apps or installations the tcp listener is killed resulting in the other apps and installs to complete.
A scannig of ports indicates that the port used (2000) is free.
The application has two threeads. The listener thread described above and an other thread for managing user interaction using the systray. The listener thread has initially loaded a form, which is hidden while waiting for new sockets to connect.
Here is a some of the code:
Dim ip As IPAddress
ip = IPAddress.Any
tcplistener = New TcpListener(ip, myPort)
tcpListener.Start()
While True
Dim socket As Socket = tcpListener.AcceptSocket()
Any suggestions will be appriciatd.
Bjørn