[[self readStream] scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:[self runLoopMode]];

出错位置定义到这行代码

http://stackoverflow.com/questions/8906758/debugger-stopping-on-asihttprequests-schedulereadstream-with-no-error

stackoverflow上面的解释

在自己的代码中,修改如下:

修改之前

request.url = [NSURL URLWithString:urlString]

修改之后

[request initWithURL:[NSURL URLWithString:urlString]]

 

url的初始化问题导致内存泄露。

相关文章:

  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2022-01-17
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案