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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -