Today, I posted a long question to the cocoa mailing list of the Apple
Computer. At that time, I was thinking about 3 different things at the same time, so my question was not quite correct.
By the way, one guy there told me about an environmental variable which helps memory debugging.
- MallocScribble : if set, released memory block will be filled with 0x55
- MallocPreScribble : if set, newly allocated block will be filled with 0xAA
- MallocGuardEdges : It is like MS’s no-men’s-land
For more, please read Memory Usage Performance Guidelines: Enabling the Malloc Debugging Features