Hello,
We are trying to receive files which are sent by PDA, via desktopListener but after desktop receives some part of the file without finishing the file transfer the whole process freezes. On the other hand, during the process system does not push exception.
I found that the freezing part is " ObexListenerContext olc = ol.GetContext();" at below you can find whole code
public void DealWithRequest()
{
while(ol.IsListening)
{
try
{
ObexListenerContext olc = ol.GetContext();
ObexListenerRequest olr = olc.Request;
string filename = ObexUri.UnescapeDataString(olr.RawUrl.TrimStart(new char[]{'/'}));
olr.WriteFile(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\" + DateTime.Now.ToString("yyMMddHHmmss") + " " + filename);
this.Invoke(new AddToListDelegate(AddToList), new object[] {filename});
}
catch(Exception ex)
{
break;
}
}
}
Do you have any suggestions.
Thanks in advance.