Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:13:40+00:00 2026-06-07T09:13:40+00:00

I got a big problem with NSInvocationOperation . When I run on my iPod

  • 0

I got a big problem with NSInvocationOperation. When I run on my iPod 4, firmware 5.0.1, it’s OK. But on my iPhone 4, iOS 4.1, it crashed. This is my code:

CustomAnnotation *annotation = [[[ModelManager defaultModelManager] getAnnotationDictionaryInMemory] objectForKey:joltId];

if (annotation == nil)
   annotation = [[[ModelManager defaultModelManager] getAnnotationDictionaryInMemory] annotationWithInstagramId:eID];

if (annotation == nil)
    continue;
 //THIS ONE CRASH ON IPHONE 4 OS 4.1
NSDictionary *param = [[NSDictionary alloc] initWithObjectsAndKeys: @"aKey", @"aValue", nil];

NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:annotation selector:@selector(updateAnnotation:) object:param];

[_queue addOperation:op];
[op autorelease];

updateAnnotation function was defined in CustomAnnotation class:

- (void)updateAnnotation:(id)sender {
//NSLog(@"UPDATE ANNOTATION ID: %@", self.annoID);
NSDictionary *senderDic = (NSDictionary *)sender;
UzooltAppDelegate* appDelegate = (UzooltAppDelegate*) [UIApplication sharedApplication].delegate;

if ([senderDic objectForKey:@"nb_rejolt"] != nil) {
    NSInteger new_nb_rejolts = [[senderDic objectForKey:@"nb_rejolt"] intValue];
    //if (new_nb_rejolts != rejolts) {
        //NSLog(@"update nb rejolts: %d", new_nb_rejolts);

        if (self.rejolts != new_nb_rejolts) {
            self.rejolts = new_nb_rejolts;
            //if (self.isGrouped)
            //    [self.masterAnnotation.annotationView performSelectorOnMainThread:@selector(updateAnnotationViewWithRejolts:) withObject:[NSString stringWithFormat:@"%d", rejolts] waitUntilDone:NO];
            //else

            if ([senderDic objectForKey:@"rejolt_fbid"] != nil) {
                NSString *fbRejoltsString = [senderDic objectForKey:@"rejolt_fbid"];
                self.fbRejolts = [[fbRejoltsString componentsSeparatedByString:@","] mutableCopy];
                [self.fbRejolts removeLastObject];
                [self updateNumberOfRejoltsFromFBFrds];
            }

            [self.annotationView performSelectorOnMainThread:@selector(updateAnnotationViewWithRejolts:) withObject:[NSString stringWithFormat:@"%d", rejolts] waitUntilDone:NO];
        }

        if (self.isGrouped) {
            if (self.masterAnnotation.isShowingRadius == NO && appDelegate.uMainViewController.isInGroup == NO && ( new_nb_rejolts > self.masterAnnotation.rejolts || (new_nb_rejolts == self.masterAnnotation.rejolts && self.getAge < self.masterAnnotation.getAge))) {
                [self.masterAnnotation removeFromGroupedAnnotations:self];
                self.annotationView.hidden = NO;
                [self.annotationView performSelectorOnMainThread:@selector(showWithAlpha:) withObject:[NSNumber numberWithFloat:annotationAlpha] waitUntilDone:NO];
                [[NSNotificationCenter defaultCenter] postNotificationName:@"need_group_annotations" object:nil];
            }
        }
    //}
}

if ([senderDic objectForKey:@"lifetime"] != nil) {
    float new_lifetime = [[senderDic objectForKey:@"lifetime"] floatValue]*3600;
    //NSLog(@"new lifetime: %.f", new_lifetime);
    if (new_lifetime != lifetime) {
        //NSLog(@"update lifetime");
        self.lifetime = new_lifetime;
    }
}

[self updateViewAlpha];

if ([senderDic objectForKey:@"radius"] != nil) {
    float new_radius = [[senderDic objectForKey:@"radius"] floatValue];
    if (new_radius != radius) {
        //NSLog(@"update lifetime");
        self.radius = new_radius;
    }
}

/*
if ([appDelegate.uMainViewController isMaximumZoomIn])
    [[self annotationView] performSelectorOnMainThread:@selector(setGroupNumberIndicatorVisible:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:NO];
else
    [[self annotationView] performSelectorOnMainThread:@selector(setGroupNumberIndicatorVisible:) withObject:[NSNumber numberWithBool:NO] waitUntilDone:NO];
*/

if (isSelected == YES && isShowingRadius == NO ) {
    //NSLog(@"update details");
    [self performSelectorOnMainThread:@selector(updateDetailsView) withObject:nil waitUntilDone:NO];

    UzooltAppDelegate* appDelegate = (UzooltAppDelegate*) [UIApplication sharedApplication].delegate;
    if (isGrouped == YES && appDelegate.uMainViewController.isInGroup) {
        NSLog(@"grouped jolt rejolted");
        [self performSelectorOnMainThread:@selector(updateInGroupAnnotationView) withObject:nil waitUntilDone:NO];
    }
}

}

I don’t know where it wrong? Please help me. Thanks all !!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:13:42+00:00Added an answer on June 7, 2026 at 9:13 am

    Try running with NSZombies enabled. It should at least give you a hint as to what object you are trying to access after it has been deallocated.

    NSZombies enabled, debug information

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a big problem with encoding. The code I'm using should work but
I got a big problem this morning. My SQL Server had a HUGE bug
I've got a big problem but I bet it's easy to solve. I'm developing
I've got a big problem with IBM HACL for accessing a server which speaks
I have got very big problem because I would like to get more information
While compiling a program in Java I got this big WARNING warning: [unchecked] unchecked
I have got a big problem. After searching through the internet, I didn't find
I got a big problem, I used Lazy load of images in ListView to
I've got a big problem with routing: all pages matches with the same route!!
here i am again :( got big problem hiks ... need HELP !!! i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.