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-27-2009, 10:44 AM   #28 (permalink)
eddietr
Registered Member
 
Join Date: Apr 2009
Posts: 536
eddietr is on a distinguished road
Default

Quote:
Originally Posted by svveet View Post
I have fixed the things you said, but when i try to release trackDictionary, it still crashes when i click "back button". very weird.

but if i dont release it, its fine.
So I don't think the problem is that you are over-releasing the dictionary. The problem is you are over-releasing items in the dictionary. By not releasing the dictionary itself, you are just masking the problem.

For example look at this:

Code:
NSMutableArray *triparray = [[self trackDict] objectForKey:kTripKey];
		[self setCurrentTrackTripArray:triparray];
		[triparray release]; // You shouldn't be doing this.
You don't want to be releasing triparray there. There may be other cases of this as well, so if you clean those up then you should be able to release the dictionary after setTrackDict, which is the right thing to do.

Hope that helps. If not, please post the current version of the code including all the new changes you've incorporated.
eddietr is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,014
Threads: 93,862
Posts: 401,917
Top Poster: BrianSlick (7,962)
Welcome to our newest member, Shimi574
Powered by vBadvanced CMPS v3.1.0

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