ストアでアプリケーションを起動したばかりで、バグ レポートを確認したところ、MSDN から取得した一般的なスニペットが Lumia 520 デバイスでクラッシュしていることに気付きました。52x の所有者がこのアプリケーションをダウンロードできないようにすることはできますか?
[編集]
コードは次のとおりです。
// Use the back sensor as the default sensor
CameraSensorLocation defaultSensor = CameraSensorLocation.Back;
// If the user already configured the front sensor, use it (true=front, false=back)
if ((bool)appSettings["sensor"]) { defaultSensor = CameraSensorLocation.Front; frontMode.Visibility = System.Windows.Visibility.Visible; }
// Let's check which sensors exist
var availableLocations = PhotoCaptureDevice.AvailableSensorLocations;
// There comes the bug
var captureRes = PhotoCaptureDevice.GetAvailableCaptureResolutions(defaultSensor);
例外は次のとおりです (内部例外は含まれません)。
例外メッセージ:
The request is not supported. (Exception from HRESULT: 0x80070032)
スタックトレース:
at Windows.Phone.Media.Capture.PhotoCaptureDevice.GetAvailableCaptureResolutions (CameraSensorLocation sensor)
at Vixl.Pages.ShootPage.<openCamera>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)
GetAvailableCaptureResolutions
非同期メソッドであるため、関連する部分はスタックの最上位にある最初のレベルの例外メッセージのみです。センサーはフロントセンサーではなくリアセンサーです。この特定のエラーで調査します。