• 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: Trouble with performSelector afterDelay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with performSelector afterDelay


  • Subject: Re: Trouble with performSelector afterDelay
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 14 Jul 2008 13:33:05 -0700


On 14 Jul '08, at 11:53 AM, James Trankelson wrote:

#0	0x0002606d in -[Worker release] at Worker.m:155
#1	0x94e8502a in __delayedPerformCleanup
#2	0x9390d92b in CFRunLoopTimerInvalidate
#3	0x9390e879 in CFRunLoopRunSpecific
#4	0x9390ecf8 in CFRunLoopRunInMode
#5	0x94e734a5 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
#6	0x000fea26 in -[Listener startAsyncListener:] at Listener.m:141

It looks like the listener thread has just finished executing the delayed perform. The Worker object is probably being released because it was passed as one of the "withObject" arguments to the delayed- perform call, since those get retained until the perform finishes. The fact that this release is dealloc'ing the Worker means there must be some other unbalanced refcounting going on for that object. You should carefully look through the code the delayed perform is running to make sure all the retains and releases balance.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Trouble with performSelector afterDelay
      • From: "James Trankelson" <email@hidden>
References: 
 >Trouble with performSelector afterDelay (From: "James Trankelson" <email@hidden>)

  • Prev by Date: Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?
  • Next by Date: Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?
  • Previous by thread: Trouble with performSelector afterDelay
  • Next by thread: Re: Trouble with performSelector afterDelay
  • Index(es):
    • Date
    • Thread