Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-01-2008, 11:00 PM   #5 (permalink)
Kenrik
Registered Member
 
Join Date: Sep 2008
Posts: 288
Default

From Apple Docs..

"Discussion
This is the only way to remove a timer from an NSRunLoop object. The NSRunLoop object removes and releases the timer, either just before the invalidate method returns or at some later point.

You must send this message from the thread on which the timer was installed. If you send this message from another thread, the input source associated with the timer may not be removed from its run loop, which could prevent the thread from exiting properly.

The receiver releases its references to the target and userInfo objects at the point of invalidation."

That sucks! because I'm sending the Invalidate command from another thread it's not killing it properly.

Any ideas of how to send a message from my one thread to the other that triggers it.. ?

maybe a BOOL switch with a "if BOOL = YES" [invalidate] type thing?
Kenrik is offline   Reply With Quote
 

» Advertisements
» Online Users: 750
16 members and 734 guests
aaronhartigan, Bertrand21, betterlee, chiataytuday, Domele, dragon2777, gascertificate, hrushikeshaddon, kampftrinker, Macaret, meribran, phackdat, superblooddrainer, wilsonn44, wodanbrlam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,828
Threads: 89,207
Posts: 380,639
Top Poster: BrianSlick (7,129)
Welcome to our newest member, aaronhartigan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.