Program signal: "0". warning: check_safe_call: failed to restore the current frame

I get this error in my application

Program received signal:  "0".
warning: check_safe_call: could not restore current frame

I also turned on Zombie, but did not show any information about memory corruption in one particular case and showed the above error.

How to resolve this error?

Any help would be appreciated.

+3
source share
3 answers

Could you give more information? Does this error happen when starting an application from Xcode? On the iPhone or in the simulator? Does the application show anything or does it crash at startup?

Perhaps you have a lot of allocated memory, and iPhone OS really forces you to leave your application. Does this happen in the simulator?

Expression

0

iphone, dev, , ,

0

, UIImageview.

, , , . :

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application

.

, , .

[UIImage image Named:], UIImage. . , .

, UIImageView:

-(void) updateImage{
    CGRect rect=CGRectMake(0, 0, 320, uiviewsimage.frame.origin.y);
    NSObject *img2=CGImageCreateWithImageInRect(uiviewsimage.CGImage, rect);
    UIImage *newImage = [[UIImage alloc] initWithCGImage:img2];
    [img2 release];

    [myImageView setFrame:rect];
    [myImageView setImage:newImage];

    [newImage release];
}

, -.

0
source

Source: https://habr.com/ru/post/1733200/


All Articles