Hello All,
I add a NSTimer in the iphone application。When I run the application,it‘s failed。I has tracked it and found that it stop at “0x3050c3ad <+0013> call 0x306aeaa5 ” and cann't go on in Debugger。
If you know,please tell me what’s wrong with the application and how to solve it。
Thank you!
The code is:
NSTimer *m_heartBeatTimer;
@property(nonatomic, retain) NSTimer *m_heartBeatTimer;
@synthesize m_heartBeatTimer;
-(void)HeartBeatTimer:(NSTimer *)timer
{
[csocket CloseSocket];
}
case PING:
{
[self SendDataToServer:"00" Type:PONG];
if(m_heartBeatTimer != nil)
[m_heartBeatTimer invalidate];
m_heartBeatTimer = [NSTimer scheduledTimerWithTimeInterval:6.0 target:self selector:@selector(HeartBeatTimer:) userInfo:nil
repeats:NO];
} break;