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 12-04-2009, 10:23 AM   #8 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Wherever you are calling initWithImage right now. You should make a loop that calls initWithImage repeatedly, for all the filenames in your array. Inside that loop you can create an autorelease pool, create the the image, call initWithImage, and then drain the autorelease pool.

If you don't use the autorelease pool, then the images are not autoreleased until the end of the current event - which causes a much bigger memory spike because they're all in memory at the same time.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,384
Threads: 94,002
Posts: 402,456
Top Poster: BrianSlick (7,978)
Welcome to our newest member, lancedilks
Powered by vBadvanced CMPS v3.1.0

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