mohasad

hi ,
In my appp when i hit a particular server for 3 times consecutively , the 3 rd time or 4 th time its showing timeout . what i am doing is when the connection is started i just press the cancel button , when i do this for 3 times , the 4 th time its showing Timeout error . after the timeout exception had come , after that its working fine .

thanks
sadiq



Re: .NET Compact Framework Network Error Issue

Ilya Tumanov

That's probably because you did closed/disposed of connections and/or network streams so your connection pull (of 3 connections) run out.

So make sure to properly close/dispose all network related objects you¡¯re using.






Re: .NET Compact Framework Network Error Issue

mohasad

hi ,
I am closing the connection every time the request has been cancelled .... still i am getting this issue ...

thanks
sadiq





Re: .NET Compact Framework Network Error Issue

Anthony Wong - MSFT

Hi,

Can you attach pieces of your code that use the HttpWebRequest. This will help diagnose the issue. In general, you need to close the HttpWebResponse, the response stream in a finally block to make sure they are closed.

Cheers,

Anthony Wong [MSFT]





Re: .NET Compact Framework Network Error Issue

mohasad

hi Ilya ,
i am developing application for palm treo 700wx. in this device the power key is mapped to Red call end key . when the keys is pressed simply , the screen freezes ( i.e the current UI thread is blocked or suspended), but the background thread is running . i am not getting any event when the red call end key is pressed . how to handle this issue . what event will be fired . in their inbuilt solitair game , they are handling this issue . that is when the power( i.e. red call end )key is pressed they are stopping the time . so some event gets fired up . any help to solve this issue will be greatly appreciated .

thanks
sadiq