Re: NSTimer, no invalidate while shutting down?
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.