title: EXC_BAD_ACCESS in SQLite on Mac OS
body: <p>I'm pulling and pushing data from an sqlite database. I use the FMDatabase cocoa wrapper.</p>
  
  <p>I'm pulling and pushing data from multiple threads, but I made sure that more then one transactions never happen at the same time. </p>
  
  <p>I get <code>EXC_BAD_ACCESS</code> after a few hundred call at the database but never at the same time. It's also not memory related (I've tried NSZombies and looked at the memory management of parameters).</p>
  
  <p>Here is the stack and the code :</p>
  
  <p><a href="http://grab.by/1VwY" rel="nofollow noreferrer">alt text http://grab.by/1VwY</a></p>
  
  <pre><code>FMResultSet* result = [db executeQuery:@"select latitude, longitude from cache where name = ?", name];
  [result next];
  
  NSString* latitude = [result stringForColumn:@"latitude"];
  NSString* longitude = [result stringForColumn:@"longitude"];
  </code></pre>
  
  <p>I've got no idea, does somebody has one?</p>