I'm trying to include this barcode source code by Stefanhafeneger to my project. I started it with a simple camera example and the barcode engine, everything works fine for the 1st barcode decode. When I try with the 2nd times, i receive EXC_BAD_ACCESS. It only work 1 time after that the application will crash.
Here is a screen recording of how the appilcation crash.
i'm testing with this DataMatrix tag from google in my appilcation.
i was surfing for solution for few days, I had tried NSZombieEnabled, and debug with Instrument but i still have no luck with it. The image below is the error from xcode.
*** -[Not A Type retain]: message sent to deallocated instance 0x7b21ed0
For your information it is an ARC enabled project. Someone please help, I'm still a few months old beginner.
Here is my xCode file for this project Barcode-Datamatrix Project
Update : I also tried disabling ARC for every file related to that library by Using the linker flag -fno-objC-arc but the result still the same. Besides i tried imageView.image = [UIImage imageWithCGImage:image.CGImage];
or a copy imageView.image = [image copy];
the application still crash at the same place.
Many Thanks Kin