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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-14-2009, 11:52 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 28
jetwilson is on a distinguished road
Default Memory management issues

Hi

I am fairly new to iPhone Development, the game I am creating is one of my first proper apps. I have just about finished work on it and am running through bugs and glitches.

I have been trying to make sure my app is as memory efficient as possible, however, I am aware that in reality it is terrible. Although the app runs fine on the latest iPod, I know that it is likely to crash on a previous gen iPod.

I would like to improve the memory management, however I unfortunately do not fully understand memory allocation and management after running my app through the 'Leaks' part of instruments It has become so confusing! Parts that I think are fine have come up as leaks and I cannot find a way to solve them!

Does anybody know of anywhere that can help me understand how to manage memory better and help me correct my code?

Thanks you for any help you can offer!

Jetwilson
jetwilson is offline   Reply With Quote
Old 12-14-2009, 12:16 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

See the properties link in my signature, which also contains a link to Apple's documentation on the subject. A good reading of both will go a long way.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 12-14-2009, 02:10 PM   #3 (permalink)
jsd
at this moment
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 900
jsd is on a distinguished road
Default

If you're on Snow Leopard, the new Xcode has a great "Build & Analyze" (command-shift-A) feature that will give you some very good pointers to possible problems with your app. You can get the same functionality on Leopard by downloading and running the CLANG Static Analyzer from the command line, but it's a little trickier to get going.
jsd is offline   Reply With Quote
Old 12-15-2009, 10:30 AM   #4 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 28
jetwilson is on a distinguished road
Default Thank you

Wow, cool both of those will be very useful for me thank you!

Hopefully soon you will see my app in the app store!

Thanks again,

Jetwilson
jetwilson is offline   Reply With Quote
Reply

Bookmarks

Tags
memory management

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 329
13 members and 316 guests
akacaj, alexP, ClerurcifeDer, Duncan C, givensur, GraffitiCircus, guusleijsten, JmayLive, NetGuru, Paul Slocum, Punkjumper, Sloshmonster, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:47 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0