Re: Debug Help
Re: Debug Help
- Subject: Re: Debug Help
- From: Mike Ferris <email@hidden>
- Date: Mon, 16 Dec 2002 10:06:11 -0800
This is the classic kind of backtrace that should make you think:
"NSZombieEnabled".
Start your app in the debugger, break on main. When you hit the
breakpoint do:
p NSZombieEnabled=YES
Continue the app. Go to where it crashes and see what gets logged.
You should find out what kind of freed object is in your pool and may
get some advice on further breakpoints to set to narrow things down
further.
Zombie tracking is a really useful thing for tracking down
over-released objects. And once you figure out what kind of object is
being over-released, if the cause is not obvious, ObjectAlloc can be
helpful in tracking it down further...
Mike
Begin forwarded message:
From: Matthew Smith <email@hidden>
Date: Sun Dec 15, 2002 8:46:11 PM US/Pacific
To: <email@hidden>, Cocoa Developer <email@hidden>
Subject: Re: Debug Help
I'm sure this is a memory management issue, but I'm going blind trying
to find it.
Sorry Tony, I can't help you, I've got the same issues, only mine is
shorter!!!
#0 0x9068ba54 in objc_msgSend ()
#1 0x907e2660 in NSPopAutoreleasePool ()
#2 0x930ca374 in -[NSApplication run] ()
#3 0x000ddb8c in main (argc=1, argv=0xbffffc10) at
source/main.mm:15/Users/mps/Programming/ViewBuild
Source/ViewBuild/
#4 0x00002e28 in _start (argc=1, argv=0xbffffc10, envp=0xbffffc18) at
/SourceCache/Csu/Csu-45/crt.c:267/SourceCache/Csu/Csu-45/
#5 0x00002ca8 in start ()
Is there a way to find out what object is causing this (it's type or
name???)
I assume this is caused when an object is removed, but a call is made
to it.
Cheers
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
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-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.