Application crashes when user receives incoming call

  • Thread starter Thread starter Viral
  • Start date Start date
V

Viral

Hello Friends,

I am facing one problem. I have one timer in my application which sends job
refresh request to server at regular interval. Now when user is using this
application and if there is any incoming call, application crashes.

Now my question is, is it something related with this interval? I call web
service when timer elapses..?

Please help me..

Viral
 
Hi,

Viral said:
I am facing one problem. I have one timer in my application which sends
job
refresh request to server at regular interval. Now when user is using this
application and if there is any incoming call, application crashes.

Are you handling exceptions / error conditions within the code calling your
webservice?

It is possible your cellular device doesn't support simulatenous voice and
data connections, leading the device to suspend the data connection for the
duration of the phone call. This could possibly lead to unhandled exceptions
occuring when your timer fires.

Hope this helps,
Christopher Fairbairn
 
That's an interesting thing to check... Can you please tell me how to check
that network doesn't support voice and data simultaneously.
 
Tell us what sort of phone network it works with and we can probably tell
you. GSM/GPRS does *not* support simultaneous voice and data. While a
voice call is in progress, data transfer is unavailable.

Paul T.
 
Hi,
Tell us what sort of phone network it works with and we can probably tell
you. GSM/GPRS does *not* support simultaneous voice and data. While a
voice call is in progress, data transfer is unavailable.

It's not quite as simple as this, for example check out the "Class A,
Class B & Class C?" section at the bottom of the GSM World webpage
discussing the different type of GSM/GPRS devices
http://www.gsmworld.com/technology/gprs/class.shtml

In most practical terms you are correct because most cellphone style
devices I've seen have been Class B devices.

Rather than trying to determine these kinds of specs for your phone I
would suggest following Chris Tacke's suggestion of determining what
exception is occurring and working backwards from there.

Hope this helps,
Christopher Fairbairn
 
Are there any WM-based phones out there that aren't Class B? I'd be
interested to know which ones ;-)

Paul T.
 
You have to use TAPI to get the class info, can't remember which call it is,
search TAPI on MSDN if you really need to check this at runtime.
 
Back
Top