c# - PhotoCatureDevice.SetCaptureResolutionAsync crashing on Lumia 1020 while working 820 -


there 3 lines of code work fine on 820, crash on lumia 1020:

var captureresolutions = photocapturedevice.getavailablecaptureresolutions(camerasensorlocation.back); var captureresolution = captureresolutions.first(); await _cameraeffect.photocapturedevice.setcaptureresolutionasync(captureresolution); 

as can see, first avilable resolutions, select first 1 (which is, @ least using debugger, hightest possible resoltion exposed on photocapturedevice default, both on 820 , 1020, , set capture resoltion.

as said, works fine on 820, on 1020, crashes without error message - though, of course, have attatched debugger! doesn't trigger breakpoints after line.

when leave out last line , capture without changing reolution, works fine, has 640x480 resolution (and that's of, course, far low)


Comments

Popular posts from this blog

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -