Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an application in WinCe 6.0 with a listener to attend on a port.
The exchange with the client works correctly but after a bit of thread the application remain suspend.
I think this problem is the ram because i read thet net.socket have a problem with .net framework 2.0 but i have need it.

This is my server code:

Public Sub Server()
       tcpListener = New TcpListener(IPAddress.Any, 50000)
       listenThread = New Threading.Thread(New Threading.ThreadStart(AddressOf ListenForClients))

   End Sub

   Private Sub ListenForClients()
       Console.WriteLine("Server avviato")

       While (True)
               Dim client As TcpClient = tcpListener.AcceptTcpClient()
               clientSocket = client

               Dim clientThread As Threading.Thread = New Threading.Thread(New Threading.ThreadStart(AddressOf doChat))

           Catch ex As Exception
               Console.WriteLine("Errore server. Riavviare")
           End Try

       End While
   End Sub

Help me!!
Updated 10-Aug-10 7:39am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900