jaydev singh
jaydev singh

Reputation: 115

Application '' exited abnormally with signal 11: Segmentation fault: 11

Application '' exited abnormally with signal 11: Segmentation fault: 11

What might the problem that causes this be?

Upvotes: 3

Views: 23909

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96967

These errors occur when your program tries to access the memory location of an object that no longer exists, an object which at some earlier point in the application's lifetime has had its memory released back into the heap.

If you can track down which variable is being accessed at the time of the crash, through the use of judicious comments or, better still, a debugger, then you will have a potentially easier time fixing the bugs.

In the meantime, re-read Apple's excellent Memory Management guide, which goes into memory management issues in greater detail than can fit into this comment field.

Upvotes: 7

Related Questions