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-04-2008, 01:44 AM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 5
jms123 is on a distinguished road
Default Strange Memory Issue

I have an application that runs smoothly for a period of time. Occasionally, the didRecieveMemoryWarning fires, I free up cached data and continue on. However, when I close out of the app then relaunch, the app the didReceiveMemoryWarning event fires often. It seems as if my app memory is not fully being released, even when the application is completely closed.

If I reboot the phone the application performs much better. Is there a way to ensure memory is cleared completely when the app is closed? I used Instruments to check for leaks and there aren't any that I can see. Even if there were leaks wouldn't the memory be flushed when I quit the app? Any thoughts? Thanks.
jms123 is offline   Reply With Quote
Old 12-04-2008, 08:52 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 80
ecume is on a distinguished road
Default

the answer typically given for this is "memory fragmentation" - although I am also not sure exactly what this means or how to reduce it. It does seem better on 2.2 (for me). I had terrible problems with this under 2.0...my app would basically only run properly directly after a restart. Some games recommend restarting before playing the game, presumably for the same reason.
ecume is offline   Reply With Quote
Old 12-06-2008, 05:57 AM   #3 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
mpramodjain is on a distinguished road
Question FREEING CACHE.

[quote=jms123;33137]I have an application that runs smoothly for a period of time. Occasionally, the didRecieveMemoryWarning fires, I free up cached data and continue on. However, when I close out of the app then relaunch, the app the didReceiveMemoryWarning event fires often. It seems as if my app memory is not fully being released, even when the application is completely closed.

Hi,

Can u help me with a snippets of code on how to free up the cached data programmatically.

Also if u find the solution for the your problem , please share, I am also getting much problems with application running after a few minutes.

Thank u.
mpramodjain is offline   Reply With Quote
Old 12-06-2008, 11:49 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 45
moo_gamer is on a distinguished road
Default

Hey,

Would you please tell me, how do you release cache?

Whats the code for release cache?
moo_gamer is offline   Reply With Quote
Reply

Bookmarks

Tags
memory leaks, 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: 371
19 members and 352 guests
Absentia, akphyo, apatsufas, BinHex, cpsclicker, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, MarkC, mottdog, Music Man, PavelMik, teebee74, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

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