2014-07-13 2 views
0

여기서 무엇이 잘못 될 수 있는지 파악하려고합니다. Visual Studio를 통해 아래 코드를 실행하면 디버거와 연결될 때 모든 것이 제대로 작동합니다. 그러나 Visual Studio에 연결하지 않고 코드를 실행하면 응용 프로그램이 즉시 중단됩니다.디버거에 연결되어 있지 않으면 FolderPicker가 충돌합니다.

내가 누락 된 것이 있습니까? 내 앱에서 계속해서 필요한 변경을했는데 모든 것이 예상대로 작동합니다. Visual Studio를 사용하지 않을 때가 아닙니다.

FolderPicker folderPicker = new FolderPicker(); 
folderPicker.ContinuationData["Operation"] = "DownloadFile"; 
folderPicker.SuggestedStartLocation = PickerLocationId.Downloads; 
folderPicker.PickFolderAndContinue(); 

답변

0

확인해보세요. 몇 가지 이유 때문에이 모든 문제를 해결 제거 App.xaml.csOnSuspending()에서

continuationManager.MarkAsStale(); 

이었다.

또한이 또한 다중 작업 섹션에 앱 표시를 중지했습니다.

관련 문제