title: ASIHTTPRequest Asynchronous Crash When Changing Views
body: <p>I'm using ASIHttpRequest to recieve data from an xml file. However during an asynchronous request as soon as i change the view (back to the previous view using the navigation controller) the application crashes with a EXC_BAD_ACCESS on the main.m</p>
  
  <p>This only happens while the request is being made.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>-(void)ProcessXML{
  
      //Set url from string to url
      NSURL *theurl = [NSURL URLWithString:@"http://twitter.com/statuses/user_timeline/2smssupport.xml"];
  
      asirequest = [ASIHTTPRequest requestWithURL:theurl];
      [asirequest setDelegate:self];
      [asirequest startAsynchronous];
  
  }
  
  
  - (void)requestFinished:(ASIHTTPRequest *)request
  {
  
  
      NSLog(@"Saving to Defaults");
      NSData *responseData = [request responseData];
      xmlSaved = responseData;
  
      prefs = [NSUserDefaults standardUserDefaults];
      [prefs setObject:responseData forKey:@"xmlDownload"];
      rssParser = [[RssParser alloc] loadXMLbyURL:xmlSaved];
      [self.tableView reloadData];
      NSLog(@"%@",[prefs dataForKey:@"xmlDownload"]);
  
  }
  </code></pre>
  
  <p>The Process XML method triggers the request and the then received data is processed in the RequestFinished.</p>
  
  <p>There must be something i'm missing with the ASIHTTPRequest but i don't know what it is?</p>
  
  <p>Thanks</p>