NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv", [temp stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
DLog(@"urlString:%@",urlString); //http://maps.google.com/maps/geo?q=Kebon%20Jeruk,Jakarta&output=csv
NSURL * Url= [NSURL URLWithString:urlString]; //http://maps.google.com/maps/geo?q=Kebon%20Jeruk,Jakarta&output=csv
// Getting a SIGKILL on the next line; the program aborts
NSString * result = [NSString stringWithContentsOfURL:Url encoding:NSASCIIStringEncoding error:nil];
DLog(@"Result:%@",result);
I have no idea why my Mac app is getting SIGKILL; it only happens once in a while.
I checked and checked and checked, nothing makes sense. All the arguments that I send on that line are fine.
TryThis instead.