objective c - NSInvocationOperation with bad access crash -


I have a big problem with NSInvocationOperation . When I run on my iPod 4, firmware 5.0.1, this is fine. But on my iPhone 4, iOS 4.1, it crashed. This is my code:

  custom annotation * annotation = [[[ModelManager defaultModelManager] getAnnotationDictionaryInMemory] objectForKey: joltId]; If (annotation == zero) annotation = [[[ModelManager defaultModelManager] getAnnotationDictionaryInMemory] InstagramId with annotation: eID]; If (annotation == zero) will continue; // This is a crash iPhone 4 OS 4.1 NSDRIZATION * Ultimate = [[NSDi AOL]] Invite object endcapes: @ "AK", @ "Always", Nil]; NSINOption Operation * Option = [[NSINOption Operation Alloc] Initwith-Target: Annotation Selector: @Selector (Update Antennae :) Object: Ultimate]; [_queue addOperation: op]; [Season Autoreage];   

updateAnnotation function was defined in the class in the CustomAnnotation:

  - (zero) updateAnnotation: (id) this {// NSLog (@ "Update ANNOTATION ID:% @ ", auto.nnoid); NSDictionary * SenderDec = (NSDictionary *) Sender; UzooltAppDelegate * appDelegate = (UzooltAppDelegate *) [UIApplication ShareApp] .delegate; If ([senderDic objectForKey: @ "nb_rejolt"] = zero!) {NSInteger new_nb_rejolts = [[senderDic objectForKey: @ "nb_rejolt"] intValue]; // if (new_nb_rejolts! = Rejolts) {// NSLog (@ "Update NB Resolutions:% d", new_nb_rejolts); If (auto.regole! = New_Nb_regelles) {self.rejolts = new_nb_rejolts; // if (self.isGrouped) // [self.masterAnnotation.annotationView performSelectorOnMainThread: @selector (updateAnnotationViewWithRejolts :) withObject: [NSString stringWithFormat: @ "% d", rejolts] waitUntilDone: NO]; // and if ([Sender Dick ObjectForcae: @ "Resolve_fbid"] = NiL) {nssting * FBREGolts String = [Sender Dick Objectwork: @ "Resolve_fbid"]; Self.fbRejolts = [[fbRejoltsString ComponentsSpiritual Biting: @ ","] MuteCopy]; [Self.fbRejolts removeLlastObject]; [Self updatenumberregalesfrufffbfrds]; } [Selfkanntsnviav Prformselectoronmenthread: @silector (Updteannottionviawvithrejolts :) Vitobjekt [Nsstring Stringvitformt: @ "% d", results] Vatuntildone: NO]; } If (self.isGrouped) {if (self.masterAnnotation.isShowingRadius == NO & amp; & amp; appDelegate.uMainViewController.isInGroup == NO & amp; & amp; (new_nb_rejolts & gt; self.masterAnnotation.rejolts || (new_nb_rejolts == self Kmastranoteshnkrejolts and amp. Selfktet Edge & lt; self Kmastr Annoteshnktet))) {[self Kmastr annotations Annoteshn related Nikasimuje group: self]; Self.annotationView.hidden = NO; [Self. Annotationview SelectorOnMythread: @Selector (Showvikath Elfa) with the object: [NSNumber Number Explode: Annotation Alfa] WaitingUntilDone: No]; [[NSNotificationCenter defaultCenter] postNotificationName: @ "need_group_annotations" object: zero]; }}}} ([Sender Dick ObjectForcae: @ "Lifetime"]! = Void) {Float New_life = [[Sender Dick ObjectForcae: @ "Lifetime"] Float Value] * 3600; // NSLog (@ "New Lifetime:% .f", new_lifetime); If (new_lifetime! = Lifetime) {// NSLog (@ "update lifetime"); Self.lifetime = new_lifetime; }} [Self Update ViewAlpha]; If ([senderDic objectForKey: @ "radius"] = zero) {float new_readia = [[sender dick objectforki: @ "radius"] float value]; If (new_radius! = Radius) {// NSLog (@ "lifetime update"); Self.radius = new_radius; }} / * If ([appDelegate.uMainViewController isMaximumZoomIn]) [[self annotationView] performSelectorOnMainThread: @selector (setGroupNumberIndicatorVisible :) withObject: [NSNumber numberWithBool: Yes] waitUntilDone: NO]; Perform other [[self annotationview] Performer: OnMinethread: @Selector (Set Group Number Indicator Vivek :) Object with: [NSNumber Number With Bull: No] Waiting No: No]; * / If (has been selected == Yes & amp; Showing Radius == no) {// NSLog (@ "Update Details"); [Self-selection SelectoronManithrade: @Selector (Update DetailsViews) with Object: Null WaitingTone: No]; UzooltAppDelegate * appDelegate = (UzooltAppDelegate *) [UIApplication ShareApp] .delegate; If (grouped == yes & amp; add delegate.UMIIUIUIUIUITROROCRICR). {NSLog (@ "Gripped Voltage Resulted"); [Self Performance SelectorManaththread: @Selector (Update Inclusion Antenna View) with Object: Until zero wait: no]; }}   

}

I do not know where this is wrong? Please help me. thanks all!

Try to run with NSGobb enabled. At least this should give you an indication of what object you are trying to use after removing the object.



Comments