当前位置: 代码迷 >> Iphone >> 创建线程时候中断在创建线程那个地方了,该如何处理
  详细解决方案

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

热度:291   发布时间:2016-04-25 06:53:08.0
创建线程时候中断在创建线程那个地方了
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后面忘了加冒号了.
  相关解决方案