Click here to Skip to main content
15,795,793 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Ciao...
ho un applicazione che gira su windowsCE 6.0 con un tcplistener in ascolto su una determinata porta. Vorrei gestirlo in multithreading ma ad un certo punto il mio pc si pianta e fino a quando nn muovo qualcosa sul pc, il listener non accetta più richieste. Da cosa puo dipendere???

vi posto il mio TCPServer:


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

 End Sub

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

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

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

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

     End While
 End Sub


[EDIT]
Translation using Google translate :
Hello ...
I have an application that runs on WindowsCE 6.0 with a TcpListener listening on a port. I would handle it in multithreaded but at some point my computer hangs and until nn move something on the computer, the listener does not accept more requests. May depend on what??
[/EDIT]
Posted
Updated 6-Aug-10 5:13am
v3
Comments
HimanshuJoshi 6-Aug-10 10:11am    
This is a English language website. Please post in English only.
Jörgen Sigvardsson 7-Aug-10 14:48pm    
Reason for my vote of 1
Not in English.
Keith Barrow 8-Aug-10 10:41am    
Reason for my vote of 1
Not in English, or the other supported languages.

1 solution

Aiuto!!!!
Ho letto che si puo trattare della ram(io ho 1GB) e che sul .net framework 3.5 è stato risolto tale problema. Ma io ho bisogno di risolverlo sul 2.0
Che dite???
 
Share this answer
 

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