0

在此处输入图像描述大约 30-40 分钟后我崩溃了..我正在做的是在单独的线程调度线程中连续调用 api我不确定崩溃报告表明什么..崩溃报告的一些快照是

异常类型:EXC_BAD_ACCESS (SIGBUS) 异常代码:0x053639c0 ​​处的 KERN_PROTECTION_FAILURE 崩溃线程:5

我为此使用的代码是

 ASIFormDataRequest *request=[[ASIFormDataRequest alloc] initWithURL:url];

    [request setRequestMethod:@"POST"];
    [request addRequestHeader:@"Accept" value:@"application/json"];

    NSLog(@"%@",app.userName);
    [request addPostValue:app.userName forKey:@"username"];
    [request addPostValue:app.token forKey:@"token"];
            [request setTimeOutSeconds:40];
    [request startSynchronous];
if (!error)
{
if(not accurate value)
{
    [[NSRunLoop currentRunLoop] addTimer:[NSTimer scheduledTimerWithTimeInterval:5       target:self selector:@selector(checkCourse) userInfo:nil repeats:NO]forMode:NSDefaultRunLoopMode];
    [[NSRunLoop currentRunLoop] run];
}
else
{
  //got value 
}

}
4

0 回答 0