Take the 2-minute tour ×

My app is crashing when I open app on click of push notification. I am getting this EXC_BAD_ACCESS KERN_INVALID_ADDRESS Dont know why this is happening :( I am getting bad access for this line

[xmlParser parse];

Here is my code where i am getting issue.

- (void) requestFinished:(ASIHTTPRequest *)request {

NSString *myString = [request responseString];
webData = [NSMutableData dataWithBytes:[myString UTF8String] length:[myString length]];
NSLog(@"myString = %@",myString);

xmlParser  = nil;
xmlParser = [[NSXMLParser alloc] initWithData: webData];
[xmlParser setDelegate: self];
[xmlParser setShouldResolveExternalEntities: YES];
[xmlParser parse];

share|improve this question

Your Answer



Browse other questions tagged or ask your own question.