Windows手机摄像头挂起

时间:2013-07-17 11:17:13

标签: windows-phone-8 cameracapturetask

我使用CameraCaptureTask在我的应用程序中调用相机。它大部分时间都适合我,但偶尔会挂起,CameraCaptureTask的show方法不会调用相机。当我检查日志时,它会抛出System.InvalidOperationException。这是堆栈跟踪: -

System.InvalidOperationException at Microsoft.Phone.Tasks.ChooserListener.RegisterChooser(IChooser chooser)at Microsoft.Phone.Tasks.ChooserBase`1.Show(Uri appUri,ParameterPropertyBag ppb)at Microsoft.Phone.Tasks.CameraCaptureTask.Show()at name.LatestBrowseMedia。 AddMediaClick(Object sender,EventArgs e)位于Microsoft.Phone.Shell.ApplicationBarItemContainer.FireEventHandler(EventHandler handler,Object sender,EventArgs args)的Microsoft.Phone.Shell.ApplicationBarIconButtonContainer.ClickEvent(),位于Microsoft.Phone.Shell.ApplicationBar.OnCommand (UInt32 idCommand,Boolean isButton)at Microsoft.Phone.Shell.Interop.NativeCallbackInteropWrapper.OnCommand(UInt32 idCommand,Boolean isButton)

我的代码只是简单地进行show方法调用。请帮帮我。 Thanx提前.....

0 个答案:

没有答案