EXC_BAD_ACCESS on iPhone (with debugger screenshot)
- by VansFannel
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:
Any advice?