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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 08-11-2009, 05:31 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 2
Question Problems with UINavigationController and growing memory..

Hi,

I'm currently at the point where i'm allmost ready to launch my application, which i've developed in the last 4 months...

The application is running smooth and everything goes well..

Anyway, when i launc my app with the Leaks instrument, i found out that the memory keeps on growing with every new viewcontroller that i push (it's inside a UINavigationController)...

I have no experience in using the leaks instrument, so any help may be welcome..

I've allready searched the forum and read some memory management documents, but i can't get it fixed by just releasing some extra objects..

Advice would be very appriciated!
erikk is offline   Reply With Quote
Old 08-11-2009, 05:53 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 916
Default

Is Instruments actually detecting any leaks? Also which memory do you see growing, the overall bytes, or the net bytes? As I understand it the overall bytes shows you how much memory has been used the entire time the app has been running, while the net bytes shows the memory being used at that specific moment. So if your net bytes stay pretty constant then you should be ok.
lukeca is offline   Reply With Quote
Old 08-11-2009, 06:08 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 2
Default

Quote:
Originally Posted by lukeca View Post
Is Instruments actually detecting any leaks? Also which memory do you see growing, the overall bytes, or the net bytes? As I understand it the overall bytes shows you how much memory has been used the entire time the app has been running, while the net bytes shows the memory being used at that specific moment. So if your net bytes stay pretty constant then you should be ok.
thanks for your reply..

I checked it, and i think it is the net bytes..

I've upload a screenshot, maybe that says more to you
Yfrog - afbeelding1d
erikk is offline   Reply With Quote
Old 08-11-2009, 06:49 PM   #4 (permalink)
Digital Assertion
 
drewag's Avatar
 
Join Date: Aug 2009
Posts: 268
Default

Quote:
Originally Posted by erikk View Post
thanks for your reply..

I checked it, and i think it is the net bytes..

I've upload a screenshot, maybe that says more to you
Yfrog - afbeelding1d
How are you pushing on the viewcontrollers? When you push a view controller onto a navigationcontroller it sends a retain message automatically to the view controller so you need to release it once after pushing it on.
drewag is offline   Reply With Quote
Reply

Bookmarks

Tags
growing, leaks, memory, uinavigationcontroller

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: 232
15 members and 217 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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