开发者

Query about memory management in iPhone

开发者 https://www.devze.com 2023-03-18 17:08 出处:网络
I have query regarding memory management for iPhone app. I have a app in which is also build in for android app as well.

I have query regarding memory management for iPhone app.

I have a app in which is also build in for android app as well.

Now we have same functinality and same variables but due to some bad memory management the app gets crashed for iPhone (after开发者_开发百科 20 - 25 min) and on Android it works perfectly for much longer time without crashing.

In android they have garbage collector but for iPhone sdk we dont have anything like that, so I'm a bit confuse how to proceed.

I have released all the memory allocations in didReceiveMemoryWarning and also in dealloc.


Fisrt you have to find the memory leak. so run the app in debug mode or using instrument first find the problem and update here. and important thing if you get EXC_Bad_Acc means you have to enabled NSZombieEnabled for further detail give me a comment


Before you do what @maheswaran suggests, run the analyzer to determine if you have any easy to find (for the analyzer) memory problems.

Also, it would be good for you to put some time aside and read about how memory management works on iOS.

0

精彩评论

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