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

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

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-03-2009, 06:50 AM   #4 (permalink)
pmDavid
New Member
 
Join Date: Jun 2009
Posts: 6
pmDavid is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
The problem is here. You are releasing an object that you didn't init, retain, or copy.

Code:
	NSString *cellLabel = [[[ItemsList objectForKey:currentSection] objectAtIndex:row] objectAtIndex:0];

	cell.textLabel.text = cellLabel;
	[cellLabel release];
Once your string gets released it's being replaced in memory by something else; and that other object is catching messages intended for your string and choking on them.
Doh!! Ok - I'll take that release out when I get home tonight and give it a whirl. I'm still relatively new to Objective C, so I'm not entirely surprised I'm doing something like that. lol.

Thanks smasher!


pwnified: When I was looking through the stack trace, it was following all kinds of functions I've never seen, and the only one that I could click on and see where it was in my code, was at the bottom where it called the application main.. lol. I really wasn't sure what to make of it.
pmDavid is offline   Reply With Quote
 

» Advertisements
» Online Users: 448
21 members and 427 guests
Absentia, ageorgios, bennyholmek, bignoggins, cgokey, checkright, Droverson, Duncan C, gdogdev, ggoodoffer, iOS.Lover, ipodphone, JoePitto, linkmx, mer10, NSString, orninn, pipposanta, QuantumDoja, rijeka2008, sirenum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,639
Threads: 94,102
Posts: 402,831
Top Poster: BrianSlick (7,990)
Welcome to our newest member, sCarlRodriguezj
Powered by vBadvanced CMPS v3.1.0

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