-
大小: 1.21MB文件类型: .rar金币: 2下载: 0 次发布日期: 2024-02-02
- 语言: 其他
- 标签: SharpZipLib dll
资源简介
在使用ICSharpCode.SharpZipLib进行目录压缩后,再解压缩是提示这个错误Size mismatch: 4294967295;126976 70202;126976
我已经重新编译过了,解决了该问题。
解决方法:在项目所引用库“ICSharpCode.SharpZipLib.dll”的ICSharpCode.SharpZipLib.Zip.Compression. ZipInputStream.cs类中找到抛出异常的代码段:
int BodyRead(byte[] buffer, int offset, int count)
{
...
if ((flags & 8) == 0 && (inf.TotalIn != csize || inf.TotalOut != size)) {
throw new ZipException("Size mismatch: " + csize + ";" + size + " " + inf.TotalIn + ";" + inf.TotalOut);
}
...
return count;
}
将
if ((flags & 8) == 0 && (inf.TotalIn != csize || inf.TotalOut != size)) {
throw new ZipException("Size mismatch: " + csize + ";" + size + " " + inf.TotalIn + ";" + inf.TotalOut);
}
注释掉即可,解压和压缩一切都正常。

代码片段和文件信息
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: Assemblytitle(“CreateZipFile“)]
[assembly: AssemblyDescription(“Free C# IDE“)]
[assembly: AssemblyConfiguration(““)]
[assembly: AssemblyCompany(““)]
[assembly: AssemblyProduct(“A SharpDevelop sample“)]
[assembly: AssemblyCopyright(“Mike Krueger 2000“)]
[assembly: AssemblyTrademark(““)]
[assembly: AssemblyCulture(““)]
[assembly: AssemblyVersion(“0.85.4.369“)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(““)]
[assembly: AssemblyKeyName(““)]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 212992 2010-01-25 16:50 SharpZipLib 源代码和重新编译后的dll文件\ICSharpCode.SharpZipLib.dll
文件 212992 2010-01-25 16:55 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\bin\ICSharpCode.SharpZipLib.dll
文件 720384 2010-01-25 16:55 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\bin\ICSharpCode.SharpZipLib.pdb
文件 455728 2010-01-25 16:55 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\bin\ICSharpCode.SharpZipLib.xm
文件 110 2007-03-04 11:56 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\build.bat
....... 10779 2007-08-25 06:47 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\Changes.txt
....... 18349 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\COPYING.txt
....... 8618 2007-08-29 21:45 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\ReadMe.rtf
....... 136949 2007-06-23 06:44 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\appnote.txt
....... 38936 2007-01-26 21:30 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\bzip2 - Wikipedia the free encyclopedia.htm
....... 36944 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc-deflate.txt
....... 25037 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc-gzip.txt
....... 20502 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc-zlib.txt
....... 20502 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc1950.txt
....... 36944 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc1951.txt
....... 25037 2007-03-04 11:54 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\doc\specification\rfc1952.txt
文件 596 2007-03-04 11:56 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\ICSharpCode.SharpZipLib.key
文件 359 2007-08-23 21:45 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\ICSharpCode.SharpZLib.cmbx
文件 1452 2007-08-23 21:46 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\ICSharpCode.SharpZLib.sln
..A..H. 197632 2010-01-25 16:55 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\ICSharpCode.SharpZLib.suo
文件 158 2007-03-04 11:56 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\installGAC.bat
文件 1027 2007-09-07 23:29 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\mkDistribution.bat
文件 106 2007-09-06 07:57 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\mkhelp.bat
文件 3 2007-09-07 23:31 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\REVISION
....... 557 2007-09-07 23:41 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\AssemblyInfo.cs
....... 600 2007-03-04 11:53 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\CreateZipFile.cmbx
....... 2535 2007-06-30 09:52 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\CreateZipFile.csproj
....... 439 2007-05-19 06:46 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\CreateZipFile.csproj.user
....... 2811 2007-03-04 11:53 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\CreateZipFile.prjx
....... 844 2007-05-19 06:46 SharpZipLib 源代码和重新编译后的dll文件\SharpZipLib_0854_SourceSamples\samples\cs\CreateZipFile\CreateZipFile.sln
............此处省略298个文件信息
- 上一篇:LabVIEW的人脸识别代码
- 下一篇:红绿灯protues仿真
相关资源
- VNCX
- Adobe Illustrator CS5原版amtlib.dll文件
-
分别适用于.NET fr
amework 2.0和4.0的E - vmnetbridge.dll,vmnet.sys等文件
- 通用注入工具无驱版(HOOK注入、远程
- dll依赖项查看工具DLL DEPENDS
- zlib 最新 1.2.8 win32 win64 编译好的dll
- 一个可以由SVCHost.exe服务调用的dll模块
- 探讨研华32位DLL驱动程序
- Delphi中融合Dll中的窗口的解决办法详
- Delphi中制作DLL中回调函数的应用
- inject.rar
- 图文手把手教你一步步用VC 2010编写通
- 图文手把手教你一步步用VC 2010编写通
- 易语言实现DLL的注入 与 隐藏源码
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
- Tidy2.dll安装
- VS2012OpenGL配置所需要的全部libdllh文件
- Kvsc3.exe、Kvsc3.dll病毒查杀清除方法
- 易语言DLL函数查看器源码
- ServiceStack V3.9 全部dll
- 远程桌面协议 (RDP)控件库
- win10最新1903版多用户termsrv.dll文件及修
- 大智慧(通达信)插件(dll编程源码
- PLL和DLL:都是锁相环,区别在哪里?
- 合并多个DLL或EXE 工具+说明.rar
- ComparePlugin.dll
- windows 32位64位 x264库,包含libdll和头文
- 海图浏览器.zip
- Labview生成dll文件的方法
评论
共有 条评论