0

当我使用如何从 NSFileHandle 中逐行读取数据中的 DDFileReader 时?读取一个大文件(约37M),内存使用量越来越高。

DDFileReader * reader = [[DDFileReader alloc] initWithFilePath:[[NSBundle mainBundle] pathForResource:@"tb_sentence" ofType:@"sql"]];
 NSString * line = nil;
while ((line = [reader readLine])) 
{
  NSLog(@"read line: %@", line);
}
 [reader release];
4

1 回答 1

0

我已经解决了这个错误。那是因为我启用了僵尸对象。关闭它,

于 2014-05-29T10:50:44.950 回答