Understanding the Instrument for memory leak checking - iPhone

前端 未结 5 1449
无人共我
无人共我 2021-02-03 14:57

\"alt

Above given images is of my application leaks.

Here I want to understand that, in Extended Det

5条回答
  •  不知归路
    2021-02-03 15:08

    I too have problems with leaks in instruments. I run my app today for the first time using leaks and found several leaks. Leaks that shouldn't be leaks because there is no way for them to leak, unless some magical code is executing and raising the retain count of my objects. I understand the memory management guidelines, know how to use autorelease pools, etc. But even an empty view based app contained leaks if i put a few controls on it. And just click around 2-3 times. Go ahead and try it. I don't really understant the information instruments is trying to provide. Are those "leaks" really leaks, or just things that are suspicious to the instruments app? Should an empty app with no user code, only a few controls put on an empty view leak memory?

提交回复
热议问题