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 09-04-2011, 03:27 AM   #1 (permalink)
Registered Member
 
lomito's Avatar
 
Join Date: Feb 2011
Posts: 39
lomito is on a distinguished road
Default Please, help with memory leak ImageIO

Hello guys!

Almost done with my app. I made an app with Utility Template. When I press the info button I just try to load the support website and in that precise moment i get a couple of leaks. The code involved has been track down to this in the viewdidload method:

NSURL *aboutURL;
NSString *aboutURLString;
aboutURLString=[[NSString alloc] initWithFormat:@"http://..."];
aboutURL=[[NSURL alloc] initWithString:aboutURLString];
[aboutView loadRequest:[NSURLRequest requestWithURL:aboutURL]];
[aboutURL release];
[aboutURLString release];

If I remove this piece of code my app is leak free but dont know whats wrong. Any help would be much appreciate.
lomito is offline   Reply With Quote
Old 09-04-2011, 04:21 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

in your code there aren't leaks.
Seem to be a leak related to UIWebView, you can't do much that use the latest iOS version and hope that doesn't leak
__________________
dany_dev is offline   Reply With Quote
Old 09-08-2011, 05:50 AM   #3 (permalink)
Registered Member
 
lomito's Avatar
 
Join Date: Feb 2011
Posts: 39
lomito is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
in your code there aren't leaks.
Seem to be a leak related to UIWebView, you can't do much that use the latest iOS version and hope that doesn't leak
Thanks for your reply.
So, you mean to install a different version of xcode and then create from there the IBOutlets and connections related to the UIWebView? What happens if a submit the app like this, after all, is not my code causing the leak and the app seems not to crash.

Thanks again!
lomito is offline   Reply With Quote
Old 09-08-2011, 06:06 AM   #4 (permalink)
Registered Member
 
SundialSoft's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 176
SundialSoft is on a distinguished road
Default

Quote:
Originally Posted by lomito View Post
Hello guys!

Almost done with my app. I made an app with Utility Template. When I press the info button I just try to load the support website and in that precise moment i get a couple of leaks. The code involved has been track down to this in the viewdidload method:

NSURL *aboutURL;
NSString *aboutURLString;
aboutURLString=[[NSString alloc] initWithFormat:@"http://..."];
aboutURL=[[NSURL alloc] initWithString:aboutURLString];
[aboutView loadRequest:[NSURLRequest requestWithURL:aboutURL]];
[aboutURL release];
[aboutURLString release];

If I remove this piece of code my app is leak free but dont know whats wrong. Any help would be much appreciate.

I assume you are seeing leaks in Instruments. If you are not seeing huge increases in memory used as you use the app (when checking allocations in Instruments) then your app should be able to run for a long time without issue so would pass the app store checks. There are lots of other things you need to check as well especially low memory conditions. What happens to your app when the device is full of running apps or otherwise in a low memory state? Are you testing this?
SundialSoft is offline   Reply With Quote
Reply

Bookmarks

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: 380
5 members and 375 guests
JackReidy, jeroenkeij, Sami Gh, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,671
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JackReidy
Powered by vBadvanced CMPS v3.1.0

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