控制台输出说明位长溢出

时间:2011-06-02 19:00:37

标签: iphone overflow bit

当我运行我的应用程序时,我将此输出发送到控制台:

比特长度溢出 代码11位7-> 5 代码16位4-> 5

比特长度溢出 代码4位6-> 7

比特长度溢出 代码3比特6-> 7 代码0位6-> 7

比特长度溢出 代码16位4-> 5

比特长度溢出 代码4位6-> 7 代码5比特6-> 5 代码16位4-> 5

比特长度溢出 代码16位4-> 5

比特长度溢出 代码0位6-> 7

比特长度溢出 代码11位6-> 7

该应用程序会压缩3个文件并将其保存到其文档文件夹中,除了此输出之外,所有文件似乎都正常....

更新:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 

@try { 
    NSString *docsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    NSString *filePath = [docsPath stringByAppendingPathComponent:@"ZipTest.zip"]; 
    ZipFile *zipFile = [[ZipFile alloc] initWithFileName:filePath mode:ZipFileModeCreate]; 
    ZipWriteStream *stream; 

    if (self.textSwitch.on) { 
        stream = [zipFile writeFileInZipWithName:@"text.txt" compressionLevel:ZipCompressionLevelBest];
    } 
    [zipFile close]; 
    [zipFile release]; 
} 
@catch (ZipException *ze) {} 
@catch (id e) {} 

[pool drain];

这是什么意思?

由于

1 个答案:

答案 0 :(得分:1)

根据这个Mozilla bug,这些是由于在调试模式下构建ZLIB而造成的,并且是无害的。您可以考虑始终构建ZLIB的发行版本。