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, 05:19 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default Strange leaks founded...

Hi there!

I was seeking leaks in my app after making some changes and I've found 29 leaks wich doesn't seem to be part of my code, but I've never found them before... The Instruments leaks' panel shows this:

************************************************** *************
Leaked Object: GeneralBlock-16
#: 15
Adress: <multiple>
Size: 240 Bytes
Responsible Library: GraphicsServices
Responsible Frame: PurplePushEvent
--------------------------------------------------------
Leaked Object: GSEvent
#:
Adress: 0x163f50
Size: 128 Bytes
Responsible Library: GraphicsServices
Responsible Frame: CreateWithEventRecord
************************************************** *************

But I'm unable to see the code in this leaks (Instruments doesn't let me access the memory position) and I'm sure this code is not made but made (I think it is OpenGL code, but I've never seen before and I didn't make big changes in my app so OpenGL is running as it used to...).
Anyone knows what can be happening with this?

Thanks in advance!
Johanovski is offline   Reply With Quote
Old 06-01-2010, 07:37 AM   #2 (permalink)
krishnan
 
krish's Avatar
 
Join Date: Sep 2009
Location: Chennai
Posts: 38
Send a message via Yahoo to krish
Default

Hi Johanovski, Did you solve the problem?

Last edited by krish; 06-01-2010 at 07:39 AM. Reason: Addressed the person
krish is offline   Reply With Quote
Old 06-01-2010, 09:39 AM   #3 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default

Hi there!

It's been so long since this so I didn't even remember where the problem was ! I don't know if these are the leaks I'm thinking they are, but I've had some leaks with the accelerometer. Don't ask me why, but if you have the accelerometer enabled it will leak when you touch the screen (completely senseless, I don't know if it's even a real leak), so you have to dismiss accelerometer's delegate when you touch the screen and re-assign again after this:
Code:
// In the touchesBegan method, just at the beginning:
self.accelerometer.delegate = nil;

// In the touchesEnded method, just at the end:
self.accelerometer.delegate = self;
As I've said I don't know if these are the leaks caused by the accelerometer... I've also read in other forums that the Instruments tools may cause false positives (related to the UIKit, the CoreGraphics, etc) and that you shouldn't worry about them, but I'm not sure if these are one of them...
Sorry that I couldn't help you in a better way!

Let me know how it is going and I'll try to help you as much as I can!
Johanovski is offline   Reply With Quote
Old 06-01-2010, 10:19 AM   #4 (permalink)
krishnan
 
krish's Avatar
 
Join Date: Sep 2009
Location: Chennai
Posts: 38
Send a message via Yahoo to krish
Default

Hi Thanks for the quick response. I will check in my machine and then update you.

Last edited by krish; 06-01-2010 at 10:20 AM. Reason: Added smiley
krish is offline   Reply With Quote
Reply

Bookmarks

Tags
graphics services, leaking, leaks, memory leaks, opengl

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: 260
20 members and 240 guests
ADY, Alsahir, beleg_1998, Dani77, e2applets, iph_s, JasonR, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, Rudy, sly24, smithdale87, timle8n1, Touchmint, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,758
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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