FROM : John C. Randolph
DATE : Thu Aug 19 00:38:05 2004
On Aug 18, 2004, at 2:35 PM, Andrew Duncan wrote:
>>>> Run your app with NSZombiesEnabled turned on. This kind of problem
>>>> is almost always the result of over-releasing an object.
>>>
>>> Thanks John, is this a preprocessor define?
>>
>> No, it's an environment variable. Set it in the executable inspector
>> in XCode.
>>
>> Actually, that should be "NSZombieEnabled".
>>
>> For details, see "NSDebug.h".
>
> Thanks for the pointer. Now, do I define NSZombieEnabled as 1, or YES,
> or just anything at all? FWIW, I tried 1, and didn't see any new info
> in the run log...
Set it to YES.
It won't log anything until/unless you send a message to a freed object.
-jcr
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Aug 19 00:38:05 2004
On Aug 18, 2004, at 2:35 PM, Andrew Duncan wrote:
>>>> Run your app with NSZombiesEnabled turned on. This kind of problem
>>>> is almost always the result of over-releasing an object.
>>>
>>> Thanks John, is this a preprocessor define?
>>
>> No, it's an environment variable. Set it in the executable inspector
>> in XCode.
>>
>> Actually, that should be "NSZombieEnabled".
>>
>> For details, see "NSDebug.h".
>
> Thanks for the pointer. Now, do I define NSZombieEnabled as 1, or YES,
> or just anything at all? FWIW, I tried 1, and didn't see any new info
> in the run log...
Set it to YES.
It won't log anything until/unless you send a message to a freed object.
-jcr
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.






Cocoa mail archive

