EXC_BAD_ACCESS on iPhone (with debugger screenshot)

Posted by VansFannel on Stack Overflow See other posts from Stack Overflow or by VansFannel
Published on 2010-06-07T14:19:07Z Indexed on 2010/06/07 14:22 UTC
Read the original article Hit count: 271

Filed under:
|

Hello.

I'm developing an iPhone application that show the camera's view with this code:

-(void) displayAR {
    [rootViewController presentModalViewController:[self cameraController] animated:NO];
    [displayView setFrame:[[[self cameraController] view] bounds]];
}

And hide the camera's view with this code:

- (void) hideAR {
    [[self locationManager] stopUpdatingHeading];
    [[self locationManager] stopUpdatingLocation];

    [[self accelerometerManager] release];

    [rootViewController dismissModalViewControllerAnimated:YES];
}

When I call hideAR, I get an EXC_BAD_ACCESS with the following debugger screenshot:

alt text

Any advice?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about exc-bad-access