• 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, no invalidate while shutting down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer, no invalidate while shutting down?


  • Subject: Re: NSTimer, no invalidate while shutting down?
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 23 Jan 2004 19:24:18 -0800

On Jan 23, 2004, at 11:38 AM, Tom Harrington wrote:

I use an NSTimer to periodically call a method. When the app is exiting, its cleanup method includes calling [myTimer invalidate]. Normally this is fine and works as expected. But there's one exception: If the app is running on Panther when the system is shutting down, the call to -invalidate blocks and never seems to return. Logged in remotely, I can also see that the app draws 90% of CPU or more when this is happening. After 30 seconds or so the OS apparently gives up and just destroys the process or something.

If you can, try running the program in GDB (the debugger) and reproduce the problem, and then try pausing the program to see what it's doing. That's the first thing I'd try in a situation like this... Also, profiler output (from Shark, or Activity Monitor's sampler) would be helpful.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTimer, no invalidate while shutting down?
      • From: Tom Harrington <email@hidden>
References: 
 >NSTimer, no invalidate while shutting down? (From: Tom Harrington <email@hidden>)

  • Prev by Date: Re: Custom Text View
  • Next by Date: Any new/updated Cocoa books soon?
  • Previous by thread: NSTimer, no invalidate while shutting down?
  • Next by thread: Re: NSTimer, no invalidate while shutting down?
  • Index(es):
    • Date
    • Thread