title: EXC_BAD_ACCESS error in Xcode
body: <p>I really need you guy HELP , I run my program in Xcode and its successful but later, </p>
  
  <p>Its show me this error: <strong>**Thread 1: Program received signal :"EXC_BAD_ACCESS"</strong> on my program line that I have <strong>**bold below</strong> : </p>
  
  <pre><code>- (NSString *) ocrImage: (UIImage *) uiImage
  {
      CGSize imageSize = [uiImage size];
      double bytes_per_line   = CGImageGetBytesPerRow([uiImage CGImage]);
      double bytes_per_pixel  = CGImageGetBitsPerPixel([uiImage CGImage]) / 8.0;
  
      CFDataRef data = CGDataProviderCopyData(CGImageGetDataProvider([uiImage CGImage]));
      const UInt8 *imageData = CFDataGetBytePtr(data);
  
      // this could take a while. maybe needs to happen asynchronously.
  
      **char* text = tess-&gt;TesseractRect(imageData,(int)bytes_per_pixel,(int)bytes_per_line, 0, 0,(int) imageSize.height,(int) imageSize.width);**
  
      // Do something useful with the text!
      NSLog(@"Converted text: %@",[NSString stringWithCString:text encoding:NSUTF8StringEncoding]);
  
      return [NSString stringWithCString:text encoding:NSUTF8StringEncoding];
  }
  </code></pre>
  
  <p>Thank you guy .</p>