mlewis54
mlewis54

Reputation: 2380

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 assume is referenced by [3830:207] was attempting the release?

Upvotes: 0

Views: 308

Answers (3)

bbum
bbum

Reputation: 162712

Run the Allocations Instrument against your app.

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

Upvotes: 2

Macmade
Macmade

Reputation: 53960

Maybe this quick GDB tutorial will help:

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

Upvotes: 0

FeifanZ
FeifanZ

Reputation: 16316

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.

Upvotes: 0

Related Questions