I have the following code
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;
}
after received signal EXC BAD ACCESS at line dispatch_queue_set_specific. how to handle this? and everything work fine with iphone 5.0 simulator. but crashes with iphone 4.3 simulator and ipad with ios 4.2. it is part of BlackRaccoon project. after I
createDir = [BRRequestCreateDirectory initWithDelegate: self];
createDir.path = [NSString stringWithFormat:@"/%@/",strProjectID];
createDir.hostname = @"cite";
createDir.username = @"username";
createDir.password = @"password";
[createDir start];