title: finding reason for EXC_BAD_ACCESS - in Xcode4
body: <p>I get an <code>EXC_BAD_ACCESS</code> error at a place that doesn't have anything to do with the root cause. I fortunately found the reason to be an array that was too small for the following statement    <code>[data getBytes:&amp;tcpBuffer length:i];</code>.</p>
  
  <p>Now my question: I tried all these theree methods - but without success:</p>
  
  <ol>
  <li>Using NSZombiesEnabled did not change anything in the debug window printout </li>
  <li>When I set the scheme to debug and to use Leaks instrument it starts the leaks instruments but I don't see the debugger. </li>
  <li>When I just run the app in iPhone Simulator and the start Instruments separately, selecting the running app as a target (in the pop-up-menu in Instruments) it stops with an error saying something like "couldn't find the target ".</li>
  </ol>
  
  <p>How does one find the root cause in cases like that? Keep in mind, at the end, it wasn't even a Zombie error! This error message is REALLY more confusing than helpful!</p>
  
  <p>(luckily I just thought of my array, but surely, the next time this will haunt me somewhere else)</p>