专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Iphone

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

发布时间:2010-05-30 01:27:13 文章来源:www.iduyao.cn 采编人员:星星草
创建线程时候中断在创建线程那个地方了
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后面忘了加冒号了.
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: