1

I am trying to track down where an NSString is getting deallocated. I have enabled GuardMalloc, NSZombie, and Log Malloc Stack for my application (as described here). When I run info malloc-history 0x29d39fe0 in the console, I get the following error:

warning: MallocStackLoggingNoCompact not set in target's environment so the malloc history will not be available.

This is leading me to believe the error is with one of my library projects. How could I enable the above for library projects?

Community
  • 1
  • 1
Mike D
  • 4,938
  • 6
  • 43
  • 99

1 Answers1

0

Thanks to Adam for the lead (in the comments above). I was able to use instruments to track down where the extra release was occurring (which happened on an autoreleased object).

I followed the instructions here. Making sure the extended view was open, I was able to determine the exact line of code that had the offending release call.

Mike D
  • 4,938
  • 6
  • 43
  • 99