I have a class
and synthesize etc.
I have two timer variables one repeat yes and another repeat no.
the problem is, "repeat Yes" timer crashes when trying to invalidate inside the function which the timer itself had fired.
when i allocate, i see timer = 0x38Axt3 ... like this, valid address.
but when trying to invalidate, the value is 0x5 or 0x3. what's wrong ?
i have made sure everywhere that neither the timer is being released or twice invalidated, that has been proved by putting breakpoints at all invalidate method calls
regards
Code:
@interface myclass {
NSTimer *timer
}
@property(nonatomic, retain) NSTimer* timer;
@end
I have two timer variables one repeat yes and another repeat no.
the problem is, "repeat Yes" timer crashes when trying to invalidate inside the function which the timer itself had fired.
when i allocate, i see timer = 0x38Axt3 ... like this, valid address.
but when trying to invalidate, the value is 0x5 or 0x3. what's wrong ?
i have made sure everywhere that neither the timer is being released or twice invalidated, that has been proved by putting breakpoints at all invalidate method calls
regards