tianshanxuester / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GDataPhotos, fetchFeed consuming memory on iPhone #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Each time you send fetchFeedWithQuery, the application takes up more and 
more memory and 
eventually closed.

What version of the product are you using? On what operating system?
iPhone OS 3.1.2
Base SDK 3.0

Please provide any additional information below.

I write software for Picasa Web albums on iPhone.
Faced with the problem of low memory on the iPhone.

A simple example: a window with one button, tap handler for the button:

---
GDataQueryGooglePhotos *queryPhotos = [GDataQueryGooglePhotos 
photoQueryForUserID:@"username"
            albumID:nil
          albumName:@"album_name"
             photoID:nil];
[service fetchFeedWithQuery:queryPhotos
           delegate:self
      didFinishSelector:@selector(photosTicket:finishedWithFeed:error:)];

---

- (void)photosTicket:(GDataServiceTicket *)ticket 
finishedWithFeed:(GDataFeedPhotoAlbum *)feed
                                 error:(NSError *)error {
    if(error) {
        NSLog(@"Error: %@", [error localizedDescription]);
    }

    for(int i = 0; i < [[feed entries] count]; i++) {
        GDataEntryPhoto *entry = [[feed entries] objectAtIndex:i];
        NSLog(@"Photo title: %@", [[entry title] stringValue]);
    }
}

Even if in the album 10 photos.
Each time you press the button, the application takes up more and more memory 
and eventually 
closed.
Example in attach.

Original issue reported on code.google.com by preved.s...@gmail.com on 4 Jun 2010 at 8:08

Attachments:

GoogleCodeExporter commented 9 years ago
I am not seeing any leaks running the test program on the 3.2 SDK with Xcode's 
performance analysis tools.

Please specify what objects seem to be leaking.

Original comment by gregrobbins on 5 Nov 2010 at 2:11