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 4253174
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:54:40+00:00 2026-05-21T04:54:40+00:00

Using iOS 4.3 on an ipad app I have a custom NSOperation that uses

  • 0

Using iOS 4.3 on an ipad app

I have a custom NSOperation that uses an http request to process fragments of xml the operations are used in an NSOperationQueue. For the most part the app runs fine but, especially when tested on device the app crashes, this is always on a background/separate thread to the main thread. I’ve had this manifest itself as various errors including the infamous

warning: check_safe_call: could not restore current frame

ive pared back my code and discovered that the start method in my operation appears to be the culprit.

-(void)start
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    self.handledElements = [NSArray arrayWithObjects:@"el1", @"el2", @"el3", nil];


    if (![NSThread isMainThread])
        {
        [self performSelectorOnMainThread:@selector(start) withObject:nil waitUntilDone:NO];
        return;
    }

        // problem is here !!
    [self willChangeValueForKey:@"isExecuting"];
    _isExecuting = YES;
    [self didChangeValueForKey:@"isExecuting"];

    context = xmlCreatePushParserCtxt(&simpleSAXHandlerStruct, self, NULL, 0, NULL);

    if(_urlIsRelative == YES){
        self.request = [[MyHttpRequest alloc] initWithRelativeUrl:self.url andDelegate:self];
    }
    else {
        self.request = [[MyHttpRequest alloc] initWithAbsoluteUrl:self.url andDelegate:self];
    }

    self.characterBuffer = [[NSMutableData alloc] init];
    [self.request startRequest];



    [pool drain];
 }

the offending line appears to be the willChangeValueForKey:@”isExecuting” if i remove the lines related to KVO i cannot get the app to crash at all, if i add them back in i get random errors that always seem to point to getting the key value observance count. Although my app works, i would rather the start method was written as expected, with the KVO notifications take care of by me, any ideas??

  • 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-05-21T04:54:40+00:00Added an answer on May 21, 2026 at 4:54 am

    This seems to have been an issue with libxml, i have updated my version and the problem has now gone away…

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

Sidebar

Related Questions

I have a graphic-intensive iPad app that features a UIWebView. Using the simulator (iOS
I have an iOS app that makes phone calls using the Telephone application by
I have created an iPad app, using UIPageviewController in Xcode 4.2 (iOS 5). Now,
I have a Facebook app ID which I'm using on 6 iOS apps for
I'm using a popover controller in my iPad app. In iOS 5, the popover
I have an app in MonoTouch for iPad (iOS 4.2). I have a main
I have an iPad app that outputs a PDF file that needs to be
In my iOS app, I have the following code that is being used for
I have the following structure in my app (iPad, iOS 5): UIView1 --> UIView2
I have an iPad app that records video and sends it to my SaaS

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.