Re: runtime error using NSArray with NSButton
Re: runtime error using NSArray with NSButton
- Subject: Re: runtime error using NSArray with NSButton
- From: Vince DeMarco <email@hidden>
- Date: Thu, 5 Dec 2002 23:17:46 -0800
Or better is set a breaking in main in the debugger and just type
set NSZombieEnabled = 1
and then
continue
vince
On Thursday, December 5, 2002, at 08:02 PM, crucial felix wrote:
I ran across this great trick for retain/release examination:
#import <Cocoa/Cocoa.h>
// test version
#import <Foundation/NSDebug.h>
int main(int argc, const char *argv[])
{
NSZombieEnabled = YES;// test version
return NSApplicationMain(argc, argv);
}
add this while developing, it will do extra checks for wrong releases
and tell you what specifically you tried to release,
rather than just sigsegv.
and of course slows it down slightly.
-felix
On Thursday, December 5, 2002, at 06:37 PM, Henri Lamiraux wrote:
Do you retain in any way the array created by arrayWithObjects?
objects created by such methods are autoreleased.
On Thursday, December 5, 2002, at 12:43 PM, Mike McCune wrote:
When the program runs it exits after start with signal(11) SIGSEGV.
After debugging for awhile I narrowed it down to the NSButtons that
are
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
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.
-felix
_______________________________________________
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.