waynew
5th December 2010, 01:03
Small problem here - my application accesses the internet under certain conditions and if the internet is not available or is too slow to respond, the application crashes.
The internet call is made in a separate thread and I do have a timer in that thread.
I added code to check the networkAccessible property before I start the thread to make sure the net is available, but that property always returns -1 whether the network is available or not. So it still crashes when the internet is not available.
Any suggestions?
The internet call is made in a separate thread and I do have a timer in that thread.
I added code to check the networkAccessible property before I start the thread to make sure the net is available, but that property always returns -1 whether the network is available or not. So it still crashes when the internet is not available.
Any suggestions?