I was downloading emails from a backgroundWorker to keep the UI responsive and it was working fine when the textclient class was using a streamreader but ever since it is a thread that is reading the response nothing is received from the server.
I have checked that the exact same code works fine outside from the worker so I'm guessing that it's a thread-related issue but since I am no expert I ask your help...
A quick test shows that the Connect method in TextClient gets stuck on the line
string info = _Responses.Take();
Hi,
I was downloading emails from a backgroundWorker to keep the UI responsive and it was working fine when the textclient class was using a streamreader but ever since it is a thread that is reading the response nothing is received from the server.
I have checked that the exact same code works fine outside from the worker so I'm guessing that it's a thread-related issue but since I am no expert I ask your help...
A quick test shows that the Connect method in TextClient gets stuck on the line
string info = _Responses.Take();
Any ideas and/or solutions ?