title: objective-c EXC_BAD_ACCESS in my code
body: <p>I'm new to objective-c and Im trying to write a little sample app that gets some XML from a remote server and outputs it to the console, but when I do it I get a EXC_BAD_ACCESS which I dont understand:</p>
  
  <pre><code>    NSString *FeedURL = @"MYURLGOESHERE";
      NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:FeedURL]];
      NSURLResponse *resp = nil;
      NSError *err = nil;
      NSData *response = [NSURLConnection sendSynchronousRequest: theRequest returningResponse: &amp;resp error: &amp;err];
      NSString *theString = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding]; 
  
      NSLog(@"Response: %@", theString);];
  
      [resp release];
      [err release];
  </code></pre>
  
  <p>When I comment out the <code>[resp release]</code> line I dont get it anymore, can someone please explain this to me :)</p>
  
  <p>Thanks</p>