Re: Frustrating Cocoa bug
- From: Sean McBride <cwatson@xxxxxxx>
- Date: Sat, 22 Jul 2006 17:16:22 -0400
In article <gqk7j26rcbh.fsf@xxxxxxxxxxxxx>,
Tord Kallqvist Romstad <romstad@xxxxxxxxxxx> wrote:
Sean McBride <cwatson@xxxxxxx> writes:
In article <gqk3bcykg0k.fsf@xxxxxxxxxxxxx>,
Tord Kallqvist Romstad <romstad@xxxxxxxxxxx> wrote:
You could try to set NSZombieEnabled.
Thanks, I didn't know about NSZombieEnabled. It looks like a nice
tool for debugging this kind of problem. But where do I look for
error messages? I don't see anything unusual in XCode's "Run Log"
window after setting NSZombieEnabled=YES in the program's
environment. The output of my own NSLog() statements is all that
appears, and the program seems to behave in exactly the same way as
with NSZombieEnabled=NO.
<http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION>
Yes, I found that technote. Unfortunately, it doesn't answer my
question of where to look for error messages (unless I am missing
something). When I set NSZombieEnabled to YES, no new error messages
are printed to stderr or the system log, so clearly they must be sent
somewhere else.
"any attempt to interact with a freed object will raise an exception"
.... "You can use GDB to set a breakpoint on -[_NSZombie
methodSignatureForSelector:] to further debug this sort of problem"
No messages are logged. Basically you enable it and then run in the
debugger.
.
- Follow-Ups:
- Re: Frustrating Cocoa bug
- From: Tord Kallqvist Romstad
- Re: Frustrating Cocoa bug
- References:
- Frustrating Cocoa bug
- From: Tord Kallqvist Romstad
- Re: Frustrating Cocoa bug
- From: hns
- Re: Frustrating Cocoa bug
- From: Tord Kallqvist Romstad
- Re: Frustrating Cocoa bug
- From: Sean McBride
- Re: Frustrating Cocoa bug
- From: Tord Kallqvist Romstad
- Frustrating Cocoa bug
- Prev by Date: Re: Frustrating Cocoa bug
- Next by Date: Stupid XCode cannot find universal frameworks - any suggestion.
- Previous by thread: Re: Frustrating Cocoa bug
- Next by thread: Re: Frustrating Cocoa bug
- Index(es):
Relevant Pages
|
Loading