首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

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

2012-01-16 
创建线程时候中断在创建线程那个地方了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后面忘了加冒号了.

热点排行