This project has moved and is read-only. For the latest updates, please go here.

Problem with Windows RT - port

Jan 7, 2013 at 10:10 PM
Edited Jan 7, 2013 at 10:13 PM

I am trying to parse a QR Code using the latest version, but this line 

 

var data = System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeBufferExtensions.ToArray(writeableBitmap.PixelBuffer, 0, (int)writeableBitmap.PixelBuffer.Length);

 

In BitmapLuminanceSource.Silverlight.cs line 50 keeps crashing with the error "Value cannot be null." 

The writeableBitmap is not null, so I do not know what is null

Can anybody help me?

Jan 8, 2013 at 7:59 PM

I think Damir Arh gives the right answer to your question at Stackoverflow:
http://stackoverflow.com/questions/14205129/runtime-interop-argumentnullexception-using-zxing

If not I need a sample project because I can't give you an answer based upon a single line of code.
Btw. ArgumentNullException is sometimes misleading in case of the WriteableBitmap class.

Jan 9, 2013 at 11:22 AM

Yes, he gave me the right answer at StackOverflow