Redth / ZXing.Net.Mobile

Barcode Scanner for Xamarin.iOS, Xamarin.Android, UWP and Tizen
MIT License
1.07k stars 703 forks source link

WP: Crash when hitting the back button while in init #150

Open Taats opened 9 years ago

Taats commented 9 years ago

Hi,

When I start the barcode scanner and i hit the back-button while the screen is still initialising (the screen is white with the red line on it) it crashes straight into the debugger. I saw in the change-log that this bug is (supposed to be) fixed in release 1.4.2 but I'm using 1.4.7.1 from nuget and it still occurs. Could you please look in to this because even in a try/catch I can not catch the exception thrown.

Platform: windows phone 8.0

my codesnippet:

var scanner = new ZXing.Mobile.MobileBarcodeScanner(this.Dispatcher); try{ var result = await scanner.Scan(); // hit back in init and crash the app } catch (Exception ex) { // nothings catched here }

TIA

BladeMF commented 9 years ago

I can confirm this. Super annoying.

s0ulre4ver commented 9 years ago

i can confirm that this is still an issue. not good if going to be used in a frequently used app