English 中文(简体)
Finding leaks under GeneralBlock-16?
原标题:

If ObjectAlloc cannot deduce type information for the block, it uses GeneralBlock . Any strategies to get leaks from this block that may eliminate the need of my trial and error methods that I use? The Extended Detail thing doesn t really do it for me as I just keep guessing.

最佳回答

I find that sometimes if in the leaks instrument you click the button that looks something like this: {= and drag your app delegate file onto the screen, it will lead you in the right direction by highlighting the code that allocated that leaked block.

Every time it goes into a function call drag the source file with that function onto it. This can be hit and miss though as sometimes these mystery leaks aren t tracked back to the delegate.

问题回答

In XCode, you can try build and analyze. Sometimes it can be helpful in finding leaks and sometimes not. But it s worth a shot.

I ve just started using objective-c and xcode (version 4) and it appears that by clicking on the leaked object in the memory profiler, you can see exactly the point in the code it is referring to in the "extended detail" pane. In here it shows you a stack trace and clicking on a point in the stack will take you to the exact point in the code where the leak is occuring. Not sure if this was available in v3. Hope this helps anyone else tracking down a leaky GeneralBlock-16.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签