• 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: NSTimer EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer EXC_BAD_ACCESS


  • Subject: Re: NSTimer EXC_BAD_ACCESS
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sun, 14 Dec 2008 18:43:29 -0500

On Sun, Dec 14, 2008 at 2:52 PM, Jens Bauer <email@hidden> wrote:
> You probably experience your crash, because the timer is autoreleased. If
> you retain it, it'll live. However, you'll have to remember the timer
> object, so you can stop it later, so add NSTimer *timer; as a member
> variable of your class...

Take a look at the stack trace again.  It's happening within the call
to +[NSTimer scheduledTimerWithInterval:target:selector:userInfo:repeats:].
 The problem can't be that he hasn't retained a timer he hasn't
created yet.

--Kyle Sluder
_______________________________________________

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: NSTimer EXC_BAD_ACCESS
      • From: Scott Ribe <email@hidden>
References: 
 >NSTimer EXC_BAD_ACCESS (From: Daniel Luis dos Santos <email@hidden>)
 >Re: NSTimer EXC_BAD_ACCESS (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Newbie Q: Why is UIWindow in the AppDelegate not an ivar?
  • Next by Date: Re: Now contents of the layer not being rotated [was Re: Rotating a CALayer more than once is not working ]
  • Previous by thread: Re: NSTimer EXC_BAD_ACCESS
  • Next by thread: Re: NSTimer EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread