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, 08:54 PM   #7 (permalink)
pwnified
Registered Member
 
Join Date: Jun 2009
Posts: 25
pwnified is on a distinguished road
Default

Quote:
Originally Posted by pmDavid View Post
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.
Yeah when it's a memory problem the stack doesn't help much as it usually fails deep inside system calls.

One thing you could do next time, is to enable zombies to help debug it. Right click your executable in xcode (under Executables in the Overview), select Get Info, select Arguments, and under "Veriables to be set in the environment" create a variable called "NSZombieEnabled" and set the value to YES.

Now when running your app, all deallocations get moved to a zombie pool, and it'll throw an exception if the object is referenced with a readable stack. Dont forget to uncheck the NSZombieEnabled when you're done
pwnified is offline   Reply With Quote
 

» Advertisements
» Online Users: 447
21 members and 426 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.