Skip to content

App Crashes #3

@ghost

Description

First of all, thank you very much for taking the time to write this piece of code, it really would save me a lot of time and nerves, if I get it running, but unfortunately I ran into something I can't seem to resolve myself. I hope you can help me out, or if you got some example code somewhere, that would also be very appreciated.

To my problem: I initiate my instance in my -applicationDidFinishLaunching: method:

OROpenSubtitleDownloader *downloader = [[OROpenSubtitleDownloader alloc] initWithUserAgent:@"OS Test User Agent"];
downloader.delegate = self;

and then in the delegate callback I try to search for downloads like that:

NSLog(@"#1");
[downloader searchForSubtitlesWithHash:hash andFilesize:fileSize :^(NSArray *subs) { NSLog(@"%@", subs); }];
NSLog(@"#2");

and it runs fine - except that it doesn't log any subtitles - until after NSLog(@"#2"); but when it exits the method it crashes somewhere, and just shows some assembly code.
I use Mac OS X 10.7.5 and Xcode 4.6.3 and my project doesn't use ARC but I set the -fobjc-arc flag for OROpenSubtitleDownloader.m.
Thanks in advance for any hints or if it's a bug, if you could just point me to the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions