title: Decoding Barcode using Zxing library works on 1 tablet but does not work on another tablet
body: <p>I have written a windows store app in XAML &amp; C# to read image from tablet's webcam and decode the barcode using Zxing's lbrary. The code is working fine on a given tablet having an i5 processor while it fails to run on an actual tablet with 2MP camera and "Intel Baytrail Quad-Core" processor.</p>
  
  <p>Any ideas on why this could happen?</p>
  
  <p>Please let me know if you need to see my code for this issue ad I will share. </p>
  
  <p>I am wondering how can the same code work on 1 tablet while fail on another tablet.</p>
  
  <p>Thanks in advance for any help provided.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Code used to scan the barcode and read as below - The last if/else block is what I get to. No exception raised :(</p>
  
  <pre><code>string barcodeData = string.Empty;
              using (var imageStream = new InMemoryRandomAccessStream())
              {
                  processingImage = true;
                  var encodingProperties = new ImageEncodingProperties();
                  encodingProperties.Subtype = "Jpeg";
                  encodingProperties.Width = 400;
                  encodingProperties.Height = 400;
  
                  await captureMgr.CapturePhotoToStreamAsync(encodingProperties, imageStream);
                  await imageStream.FlushAsync();
                  imageStream.Seek(0);
  
                  var bitmap = new WriteableBitmap(400, 400);
                  bitmap.SetSource(imageStream);
                  preview1.Source = bitmap; //preview1 is an Image control to display the captured image
  
                  BitmapImage bitmapImage = new BitmapImage();
                  bitmapImage.SetSource(imageStream);
  
                  imageStream.Seek(0);
  
                  var bitmapDecoder = await BitmapDecoder.CreateAsync(BitmapDecoder.JpegDecoderId, imageStream);
  
                  var data = await bitmapDecoder.GetPixelDataAsync(
                      BitmapPixelFormat.Bgra8,
                      BitmapAlphaMode.Straight,
                      new BitmapTransform(),
                      ExifOrientationMode.IgnoreExifOrientation,
                      ColorManagementMode.DoNotColorManage
                      );
                  if (data != null)
                  {
                      BarcodeReader barcodeReader = new BarcodeReader();
  
                      var result = barcodeReader.Decode(
                          data.DetachPixelData(),
                          (int)bitmapDecoder.PixelWidth,
                          (int)bitmapDecoder.PixelHeight,
                          ZXing.RGBLuminanceSource.BitmapFormat.BGR32
                          );
                      if (result != null)
                      {
                          //Barcode found
                      }
                      else
                         //No data found.
                  }
              }
  </code></pre>