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 03-20-2011, 12:24 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 4
pfitzpatrick is on a distinguished road
Default memory leaks

Hi,
testing my app at the moment and it launches with minimal leaks and without any interaction, I test its ability to handle no network connection by severing the wifi connection.
The app handles this fine (i used apples reachability code) and my error splash screen is displayed.
When I turn back on the wifi connection, my app recognizes the established connection and the app launches back to its landing screen. Its at this point that Instruments goes crazy with a bunch of memory leaks that were not detected initially when the app launched.

Hope somebody can offer some suggestion(s).

Thanks
Patrick
pfitzpatrick is offline   Reply With Quote
Old 03-20-2011, 02:28 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 4
pfitzpatrick is on a distinguished road
Default

Seems like it took a 5 mile run to refresh my brain and spot the error of my ways.

My app is parsing xml files on loading and when the network was re-established, I was calling the xml parser methods again, which was obviously throwing memory leaks for that objects that I created on the first xml parse!!

Yes - I know! I have given myself a severe slap on the head!

Happy Coding!!
pfitzpatrick is offline   Reply With Quote
Reply

Bookmarks

Tags
instruments, leaks, memory

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: 354
11 members and 343 guests
7twenty7, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, michelle, mistergreen2011, Sami Gh, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,661
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, tinamm64
Powered by vBadvanced CMPS v3.1.0

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