次のコードがあります
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 シミュレーターと iOS 4.2 の iPad ではクラッシュします。BlackRaccoon プロジェクトの一部です。私の後
createDir = [BRRequestCreateDirectory initWithDelegate: self];
createDir.path = [NSString stringWithFormat:@"/%@/",strProjectID];
createDir.hostname = @"cite";
createDir.username = @"username";
createDir.password = @"password";
[createDir start];