0

我使用此代码,但有时我收到 Exc 错误访问

这是代码:

- (void)operationDidStart {
    [self.lock lock];
    if (! [self isCancelled]) {
        self.connection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self startImmediately:NO];

        NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
        for (NSString *runLoopMode in self.runLoopModes) {
            [self.connection scheduleInRunLoop:runLoop forMode:runLoopMode];
            [self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode];
        }

我收到了 AFnetworking 信号 Sigbart

*[self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode];

FLAC__STREAM_ENCODER_UNINITIALIZED

有时

线程 7 AFNetworking EX_BAD_ACESS(代码=1,地址=OxO)

4

0 回答 0