determine if pocket pc 2003 device has been disconnected from the network

  • Thread starter Thread starter Raymond Maillard
  • Start date Start date
R

Raymond Maillard

I currently have an app running on a pocket pc 2003 that connects to a
webservice to update information. The device is using gprs for
interconnectivity. In one particular module, data is sent to the server and
waits on a feedback from the server. However, sometimes the gprs service is
dropped and then the device hangs waiting on a response. The update is done
in a try catch block but the device apparently gets no error indicating that
the signal has been lost.

How can I prevent the device from freezing when the signal is dropped? Is
there a timeout setting I can set within my code that I can check to see if
a response has failed to come in within that time? If so, how do I do this?
I am using vb.net 2003.

Regards
 
You said you were using a web service right? There is a timeout
property that you can specify. An exception should be thrown if no
data is sent by the time the timeout is reached. The timeout is in
milliseconds by the way.

WebServiceInstance.Timeout = 5 * 1000

The WebServiceInstance is the instance of your webservice you create.
Does that make sense?
 
Back
Top