ThreadAbortException on weak WiFi signal

  • Thread starter Thread starter Thore Berntsen
  • Start date Start date
T

Thore Berntsen

I have an .NET Compact Framework 2.0 application that calls an .asmx
webservice asynchronously over WiFi. It works fine most of the time,
but if the WiFi signal is very weak I sometimes get an
ThreadAbortException. I guess it is the thread waiting for the
callback that is aborted.

I catch this exception and log it. But the problem with
ThreadAbortException is that it is rethrown. In the full framework I
can stop that by calling Thread.ResetAbort(), but that method is
missing in the .NET CF 2.0. The result of this is that my application
crashes. Is there any way that I can stop the ThreadAbortException?

Thore
 
I am using a periodic web service caller method , using GPRS. I had
similar problems then i set a TimeOut for Web Service (10 second).
Then i set the period of web service call to 1 minute. hope this
helps..
 
I am using a periodic web service caller method , using GPRS. I had
similar problems then i set a TimeOut for Web Service (10 second).
Then i set the period of web service call to 1 minute. hope this
helps..

Thank You, I have actually set the timeout to 10 seconds, I will try
to set it to 60 seconds as You suggest.

Thore
 
Back
Top