创建线程时候中断在创建线程那个地方了,该如何处理

创建线程时候中断在创建线程那个地方了C/C++ code- (void)startRemote{NSThread *myThread [[NSThread a

创建线程时候中断在创建线程那个地方了

C/C++ code
- (void)startRemote{    NSThread *myThread = [[NSThread alloc]                          initWithTarget:self selector:@selector(mThreadFunc) param:self];    [myThread start];}-(void)mThreadFunc:(id)param{    //something to do}


调试的时候中断到initWithTarget
提示Thread 1:Program received signal:“SIGABRT”


[解决办法]
1. NSThread *myThread = [[NSThread alloc]
initWithTarget:self selector:@selector(mThreadFunc:) param:self];

mThreadFunc后面忘了加冒号了.