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

Object reference not set to an instance of an object - QR Code

Feb 6, 2014 at 4:25 PM
Hi there. I have a simple QRcode that I'm trying to decode using a webcam using ZXing. Most barcodes seem to work but this one in particular doesn't. It's failing on:

at ZXing.QrCode.Internal.AlignmentPattern.op_Implicit(AlignmentPattern point) in c:\Users\Wayne\Downloads\barcodereader8-21298\Source\lib\qrcode\detector\AlignmentPattern.cs:line 116

QRCode -

Any help would be much appreciated thank you :)
Feb 6, 2014 at 4:47 PM
You are using an old version of ZXing.Net from another project:
ZXing.Net in Windows Store App Sample code

Please update the ZXing.Net source code in your working copy to the latests sources from here.
Feb 6, 2014 at 6:32 PM
Hi there. I downloaded the latest in that solution using NuGet actually. Sorry I should've mentioned that. Sent from my iPhone
Feb 6, 2014 at 8:56 PM
But you doesn't use the version from NuGet for your tests.
The stacktrace says that you use the version from the project I mentioned above:
c:\Users\Wayne\Downloads\ barcodereader8-21298 ...
Perhaps the assembly reference in your project file isn't set correctly.
Feb 6, 2014 at 11:01 PM
Hmm I will check tomorrow morn. Thank you very much for your swift responses ;)

Sent from my iPhone

Feb 7, 2014 at 10:16 AM

Goddamn old DLLs not being replaced!!

All working thank you!!