title: How to debug EXC_BAD_ACCESS error using Profile in Xcode
body: <p>After I received a exc_bad_access error I read this tutorial: <a href="http://www.ioslearner.com/debugging-exc_bad_access-error-xcode-instruments/" rel="nofollow">http://www.ioslearner.com/debugging-exc_bad_access-error-xcode-instruments/</a> and followed the steps:</p>
  
  <ul>
  <li>Run Profile</li>
  <li>Choose Zombies</li>
  </ul>
  
  <p>Everything looks the same on my computer except that I do not get the Zomie Signal.</p>
  
  <p>In order to make sure I did not forget a step I tried it with the example code provided in the Tutorial. There I see the Zombi Signal </p>
  
  <p><strong>So how do I get the zombie signal in my project using Xcode -> Profile?</strong></p>
  
  <p>This is the sample code I use:</p>
  
  <p>I am well aware that the two releases cause the error. Again the question is how get the "Zombie Message" in the Profile using Xcode:</p>
  
  <pre><code>NSArray *currentRestaurant = [restaurants objectAtIndex:i];
  RestauInfo *restauInfo = [NSEntityDescription
                           insertNewObjectForEntityForName:@"RestauInfo" 
                           inManagedObjectContext:context];
  [restauInfo release];
  restauInfo.Name = [currentRestaurant objectAtIndex:0];
  restauInfo.Cuisine = [currentRestaurant objectAtIndex:1];
  NSError *error;
  if (![context save:&amp;error]) {
      NSLog(@"Whoops, couldn't save: %@", [error localizedDescription]);
  }
  [restauInfo release];// - this release would cause an EXC_BAD_ACCESS
  </code></pre>
  
  <p>Another question is: Why do I get bad_access at the second release - and not when accessing restauInfo after the first release?</p>