• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: runtime error using NSArray with NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: runtime error using NSArray with NSButton (From: crucial felix <email@hidden>)

  • Prev by Date: Re: NSData to plist
  • Next by Date: runtime error with NSArray no more!
  • Previous by thread: Re: runtime error using NSArray with NSButton
  • Next by thread: Re: runtime error using NSArray with NSButton
  • Index(es):
    • Date
    • Thread