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 11-18-2009, 10:27 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default Big problem with object allocations...

Hi there!

I'm working in my app and I've found that while running in the simulator everything goes right, but when I try it in the device, after playing the game twice or likely, the app suddenly stops. I've traced the app with Instruments and I've found some memory leaks (which are not mine, they come from GraphicsServices, no idea of what is...), but I think my problem comes from object allocations. Since my app is running living objects counter doesn't decrease (almost). But when I search for allocated objects I've found that aprox. 11,000 over 16,000 allocations are mallocs (32, 64, 4, 512 kbs, etc) which come from, for example, glTexImage2D (which I think it's an OpenGL method, so no proper code inside), and responsible library is (accordingly to what I've supposed) OpenGLES. What can I do with this? I'm working with objects that use .png images and, of course, they need to be printed on screen. I've also tried to release images when they're not used, blah blah blah, but it doesn't seems to be enough... Before crushing the application sends 5 or 6 memory warnings, but I don't know what can I do with this warnings if I can't release (or so I think) malloc that I didn't made (or think I did not made).
Can anyone help me please? I can't go on with it, and I don't want to continue my app since this is solved (it has to be solved sooner or later, so the soon I solve it the better my app can run).

Thanks in advance!

Last edited by Johanovski; 11-18-2009 at 10:29 AM. Reason: Some troubles with english... ^_^
Johanovski is offline   Reply With Quote
Reply

Bookmarks

Tags
allocations, glteximage2d, malloc, memory, opengles

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
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

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