NSTimer is not getting stopped?

Str_Message isEqualToString:ON should be like this str_Message isEqualToString:@"ON" similarly for the comparison with OFF. Use OFF.

Str_Message isEqualToString:ON should be like this str_Message isEqualToString:@"ON". Similarly for the comparison with OFF. Use @"OFF".

That is not issue, as the condition is getting true... but the timer value is nil is the issue. When the off command is received – iPhone Fun Aug 4 at 12:41 Well, if ON is declared as NSString* ON = @"ON"; and OFF similarly, there would be no problem with this part. – progrmr Aug 4 at 12:43 @iPhone Fun: Are OFF and ON defined as constants?

– Evan Mulawski Aug 4 at 12:44 Then if you have a retain property on the timer then use the getter method to invalidate it. – Praveen S Aug 4 at 12:45 @evan Yes these are string constants – iPhone Fun Aug 4 at 12:51.

If you've got a property declared for the timer, you should use it. For instance, if your timer is defined as @property (nonatomic, retain) NSTimer *myTimer; you should refer to it as self. MyTimer and set it using that setter and invalidate it later using the accessor.It looks like you're not setting tmr_CallWebService to your timer ivar at any place so you're just leaking and losing the reference.

I think you just need to replace tmr_CallWebService with timer.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send