开发者

increasing object allocations in instruments

开发者 https://www.devze.com 2023-02-04 09:54 出处:网络
Hi friends My App is retrieving Data from SQLServer through web service,and storing into Local SQLite Database,and Displays Data in Table View while i am runnin开发者_高级运维g App through instruments

Hi friends My App is retrieving Data from SQLServer through web service,and storing into Local SQLite Database,and Displays Data in Table View while i am runnin开发者_高级运维g App through instruments its showing Fallowing Allocations... Can Any one Help why these objects are still in memory....?

increasing object allocations in instruments

increasing object allocations in instruments


Show us the code that you're using when inserting/updating records. Most probably you're allocating an object which you are then not releasing. For example:

NSString *someString = [[NSString alloc] initWithString:@"Yo"];
[myDictionary setValue:someString forKey:@"stringValue"];

You need to then call [someString release] to release the allocated object. Go over the code and see if you're 'alloc'ing something which you are then not releasing.

0

精彩评论

暂无评论...
验证码 换一张
取 消