非常奇怪的线程错误消息。

我试图将一个方法放在后台的单独线程中,但偶尔会收到很多错误消息,带有消息

METHODCLOSURE: OH NO SEPERATE THREAD

带有所有错误拼写。

有谁知道这是什么意思吗?线程运行,有趣的是

更具体地说: 我通过以下方式调用后台进程

[self performSelectorInBackground:@selector(finishedRunningThreadData:) withObject:e];

该方法为

- (void)finishedRunningThreadData:(NSString *) e
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    //call iPhone-wax methods here which might call ObjC thread.
    [pool release];
}

答案:错误消息来自于 wax-iPhone。它首先检查运行的线程。(wax-instance.h line 337)

原文链接 https://stackoverflow.com/questions/2846277

点赞