title: XCode - EXC_BAD_ACCESS. -[Not A Type retain]
body: <p>I'm trying to include this <a href="https://github.com/stefanhafeneger/Barcode" rel="nofollow noreferrer">barcode source code by Stefanhafeneger</a> 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. </p>
  
  <p><a href="http://dl.dropbox.com/u/2305062/DataMatrix%20error.mov" rel="nofollow noreferrer">Here is a screen recording of how the appilcation crash.</a> </p>
  
  <p>i'm testing with this <a href="http://www.ufodesign.ro/dm/datamatrix.gif" rel="nofollow noreferrer">DataMatrix</a> tag from google in my appilcation.</p>
  
  <p><img src="https://i.stack.imgur.com/UscOZ.gif" alt="UfoDesign DataMatrix"></p>
  
  <p>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. </p>
  
  <pre><code>*** -[Not A Type retain]: message sent to deallocated instance 0x7b21ed0
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/2dRFO.png" alt="debugging1">
  <img src="https://i.stack.imgur.com/pgG2l.png" alt="debugging2"></p>
  
  <p>For your information it is an ARC enabled project. Someone please help, I'm still a few months old beginner.</p>
  
  <p>Here is my xCode file for this project <a href="http://dl.dropbox.com/u/2305062/Barcode-Datamatrix.zip" rel="nofollow noreferrer">Barcode-Datamatrix Project</a></p>
  
  <p>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 <code>imageView.image = [UIImage imageWithCGImage:image.CGImage];</code> or a copy <code>imageView.image = [image copy];</code> the application still crash at the same place.</p>
  
  <p>Many Thanks
  Kin</p>