开发者

Objective C -- how to find where error occurs

I am receiving a message from GDB as follows on the console:

2011-03-06 12:31:01.303 myProgram[3830:207] *** __NSAutoreleaseFreedObject(): release of previously deallocated object (0x61472a0) ignored

How do I find which line in the program (which I as开发者_JS百科sume is referenced by [3830:207] was attempting the release?


Run the Allocations Instrument against your app.

In particular, "flip " the allocations instrument over and turn on zombie detection & track retain/release events.


Generally, it depends on where you are in your execution. If you can figure out what class is responsible, it'll be easier to pinpoint the error. The 207 is referencing a line number; I can't find a reference to the 3830 in the GDB reference.


Maybe this quick GDB tutorial will help:

http://www.eosgarden.com/en/articles/gdb-tutorial/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜