I have following code, which executes on button press. At first it works as expected but second time onwards application hangs and I get EXE_BAD_ACCESS
signal.
- (IBAction) comicDetailsPressed:(id)sender {
static IssueProperties *props = nil;
if (props == nil) {
props = [ComicDataParser
parseComicForUrl:@"http://dummy.com/Jan.xml"];
}
NSLog(@"%d", [props totalPages]);
totalPages.text = [NSString stringWithFormat:@"%d", [props totalPages]];
}
as beginner Mac programmer I'm not able to figure out the problem, any help/suggetion is appreciated.