xyj70 / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

Invalid Cast Exception in BackgroundProcess.cs #260

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the application, then click "Go Back" button until the application 
goes to the background
2. Click on the application icon to start it again.
3. BackgroundProcess.cs throws an exception and the app crashes

What is the expected output? What do you see instead?
The application is supposed to start and run as normal. Instead, the background 
process crashes.

What version of the product are you using? On what operating system?
Using on Windows Phone 8

Please provide any additional information below.

-------------------
public SipService SipService
        {
            get
            {
                if (this.server != null)
                {
//Crashes here
                    return this.server.SipService;
                }
                return null;
            }
        }

-       [System.InvalidCastException]   {System.InvalidCastException: Unable to cast 
COM object of type 'doubango_rt.BackEnd.OutOfProcess.Server' to interface type 
'doubango_rt.BackEnd.OutOfProcess.__IServerPublicNonVirtuals'. This operation 
failed because the QueryInterface call on the COM component for the interface 
with IID '{E4EA5621-E41B-3A0B-8FBD-C2851F7454FC}' failed due to the following 
error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).
   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW_WinRT(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget)
   at doubango_rt.BackEnd.OutOfProcess.Server.get_SipService()
   at org.doubango.WindowsPhone.BackgroundProcessController.get_SipService()
   at Voxofon.rtServiceManager.get_SipService()
   at Voxofon.rtServiceManager.Stop(Boolean bEnteringBackground)
   at Voxofon.App.Application_Closing(Object sender, ClosingEventArgs e)
   at Microsoft.Phone.Shell.PhoneApplicationService.FireClosing()
   at Microsoft.Phone.TaskModel.Interop.ITask.Closing.Invoke()
   at Microsoft.Phone.TaskModel.Interop.Task.FireOnClosing()}   System.InvalidCastException

Original issue reported on code.google.com by julia.go...@gmail.com on 3 May 2013 at 3:09

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 7 May 2013 at 3:16

GoogleCodeExporter commented 9 years ago
Hi Julia.
I have also reported this issue on group.
https://groups.google.com/forum/?fromgroups=#!topic/doubango/mdEzhVautk0
In my case this issue is coming when are in active call and your app goes to 2 
or max three time in background and you tap on shell "Tap to Expand".

And this error comes
{
System.Exception: The remote procedure call failed. 
Exception from HRESULT: 0x800706BE)
at doubango_rt.BackEnd.OutOfProcess.Server.get_SipService()
at org.doubango.WindowsPhone.BackgroundProcessController.get_SipService()
}

Original comment by arslan...@gmail.com on 7 May 2013 at 8:11

GoogleCodeExporter commented 9 years ago
And Its Also An Error Sometimes Come For Invalid Cast.

-> Error: Unable to cast COM object of type 
'doubango_rt.BackEnd.OutOfProcess.Server' to interface type 
'doubango_rt.BackEnd.OutOfProcess.__IServerPublicNonVirtuals'. This operation 
failed because the QueryInterface call on the COM component for the interface 
with IID '{E4EA5621-E41B-3A0B-8FBD-C2851F7454FC}' failed due to the following 
error: 
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).

Original comment by arslan...@gmail.com on 7 May 2013 at 8:27