debug可以,release不行,release里加了一句无关的代码又可以了
通过打印日志文件,发现有个值本该是那样结果是0,debug是对的。
但在之前在打印一串无用的日志,结果release版本又对了,不晓得是怎么回事
代码其实没啥特别的,给上便于说明
LogDll("1111"); // LogDll("compressSize",pHeader->compressSize); // LogDll("uncompressSize",pHeader->uncompressSize); unsigned char* src=new unsigned char[pHeader->compressSize]; unsigned char* dst=new unsigned char[pHeader->uncompressSize]; fread(src,1,pHeader->compressSize,fr); unsigned long dstLen; uncompressRaw(dst,&dstLen,src,pHeader->compressSize); LogDll("dstLen",dstLen); fwrite(dst,1,pHeader->uncompressSize,fw);