我有以下代码
dispatch_queue_t dispatch_get_local_queue()
{
static dispatch_queue_t _queue;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_queue = dispatch_queue_create("com.github.blackraccoon", 0);
dispatch_queue_set_specific(_queue, "com.github.blackraccoon", (void*) "com.github.blackraccoon", NULL);
});
return _queue;
}
在 dispatch_queue_set_specific 行收到信号 EXC BAD ACCESS 后。如何处理?并且在 iphone 5.0 模拟器上一切正常。但与 iphone 4.3 模拟器和 ipad 与 ios 4.2 崩溃。它是 BlackRaccoon 项目的一部分。在我之后
createDir = [BRRequestCreateDirectory initWithDelegate: self];
createDir.path = [NSString stringWithFormat:@"/%@/",strProjectID];
createDir.hostname = @"cite";
createDir.username = @"username";
createDir.password = @"password";
[createDir start];