OData Memory Issue

Oct 11, 2011 at 7:10 PM


I am using OData to download records from the Data service to SQLite database, 500 records in one request.

Every thing works fine, but on iPad the memory is increased for every request, and after few requests the app is getting crashed, i have investigated the issue in Profile, ODataObjectContext and executeServiceOperation taking too much memory.

I am releasing the proxy and result array too, but no use.

Please look at the code below

proxy = [[ModelDataContext alloc] initWithUri:url credential:nil]; //ModelDataContext  is Data Service class generated using OData
            [proxy setODataDelegate:self];

            while (!bDone) {
                lstDetails = [NSMutableArray arrayWithArray:[proxy GetDetail:@"10/07/2009" currentdate:@"10/08/2012" startindex:str pagesize:[NSNumber numberWithInt:pageSize]]];
if(lstDetails count < 500)

I am releasing proxy and lstDetails but still the memory increasing in the buffer


Any help appreciated