Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-07-2009, 11:31 AM   #5 (permalink)
mgales
Latest app on AppStore
 
mgales's Avatar
 
Join Date: Jun 2009
Location: Basingstoke, Hampshire. UK
Posts: 119
mgales is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
You should still be able to see messages in the console, if you're running your app in the device directly from XCode.

NSZombies:
CocoaDev: NSZombieEnabled

Clang:
Clang Static Analyzer
Thanks for that.

I have enabled NSZombie, and this is the error I get: -

-[MapViewController respondsToSelector:]: message sent to deallocated instance 0x10bc300

This occurs when I click the Back button in my Navigation Bar!

The view it is moving from contains a MapView!

I have narrowed the problem to the following: -

- (void)mapView {
MapViewController *mvController = [[MapViewController alloc] initWithNibName:@"MapView" bundle:[NSBundle mainBundle]];

[mvController setItemLocation:[NSString stringWithFormat:@"%@ %@", [details objectForKey:@"Latitude"], [details objectForKey:@"Longitude"]]];

[self.navigationController pushViewController:mvController animated:YES];

//[mvController release];
}

If I uncomment the [mvController release]; line the app crashed.... Shouldn't mvController be released?

The app works without this line, and I cannot find any leaks!

Thanks

Last edited by mgales; 07-07-2009 at 12:09 PM.
mgales is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 174,542
Threads: 93,724
Posts: 401,260
Top Poster: BrianSlick (7,954)
Welcome to our newest member, cavisboung
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.