• 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: - (IBAction) executes normally, but then crushes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: - (IBAction) executes normally, but then crushes.


  • Subject: Re: - (IBAction) executes normally, but then crushes.
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 19 Mar 2009 16:02:30 -0700

2009/3/19 Тимофей Даньшин <email@hidden>:
> Hello again.
> Here is what is says in the debugger:
> 0 objc_msgSend
> 1 NSPopAutoReleasePool
> 2 -[NSApplication run]
> 3 NSApplicationMain
> 4 main
> Here is the stacktrace with the 0th line selected.

This is indicative of over releasing an object. Likely some objects in
all of the code you didn't post is taking an object you don't "own"
and releasing it. Then later this object is also release by the auto
release pool.

Review the memory management docs and look at using NSZombie and/or
use Instruments to track down the object and code path involved.

Review...

<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html>
<http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION>
<http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/>
<http://www.cocoadev.com/index.pl?DebuggingAutorelease>

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >- (IBAction) executes normally, but then crushes. (From: Тимофей Даньшин <email@hidden>)
 >Re: - (IBAction) executes normally, but then crushes. (From: Shawn Erickson <email@hidden>)
 >Re: - (IBAction) executes normally, but then crushes. (From: Тимофей Даньшин <email@hidden>)

  • Prev by Date: Re: - (IBAction) executes normally, but then crushes.
  • Next by Date: Re: problems with CAAnimation - SOLVED (kinda)
  • Previous by thread: Re: - (IBAction) executes normally, but then crushes.
  • Next by thread: Re: - (IBAction) executes normally, but then crushes.
  • Index(es):
    • Date
    • Thread