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

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
 
C

Chris Oswald

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top