<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SevenZipSharp</title><link>http://sevenzipsharp.codeplex.com/project/feeds/rss</link><description>Managed 7-zip library written in C&amp;#35; that provides data &amp;#40;self-&amp;#41;extraction and compression &amp;#40;all 7-zip formats are supported&amp;#41;. It wraps 7z.dll or any compatible one and makes use of LZMA SDK.</description><item><title>Commented Issue: Getting the following error on CompressDirectory - SevenZip.SevenZipException : The execution has failed due to the bug in the SevenZipSharp. [11670]</title><link>http://sevenzipsharp.codeplex.com/workitem/11670</link><description>When I attempt to call compress directory I am getting the following exception -&lt;br /&gt;&lt;br /&gt;SevenZip.SevenZipException &amp;#58; The execution has failed due to the bug in the SevenZipSharp.&lt;br /&gt;  Please report about it to http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;WorkItem&amp;#47;List.aspx, post the release number and attach the archive.&lt;br /&gt;     at SevenZip.SevenZipBase.ThrowException&amp;#40;CallbackBase handler, Exception e&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipBase.CheckedExecute&amp;#40;Int32 hresult, String message, CallbackBase handler&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressFilesEncrypted&amp;#40;Stream archiveStream, Int32 commonRootLength, String password, String fileFullNames&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, Stream archiveStream, String password, String searchPattern, Boolean recursion&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, String archiveName, String password, String searchPattern, Boolean recursion&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, String archiveName, Boolean recursion&amp;#41;&lt;br /&gt;     at Philips.PmsCT.Service.Infrastructure.Utilities.Common.Compression.SevenZipCompression.Compress&amp;#40;String folderToCompress, String archivePath, Boolean createNew, CompressionLevel compressionLevel&amp;#41;&lt;br /&gt;&lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt;Comments: ** Comment from web user: ksplem ** &lt;p&gt;I've hit the same bug with v 0.64.3890.29348&lt;/p&gt;&lt;p&gt;SevenZip.SevenZipException: The execution has failed due to the bug in the SevenZipSharp.&lt;br&gt;Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.&lt;br&gt;   at SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e)&lt;br&gt;   at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler)&lt;br&gt;   at SevenZip.SevenZipCompressor.CompressFilesEncrypted(Stream archiveStream, Int32 commonRootLength, String password, String[] fileFullNames)&lt;br&gt;   at SevenZip.SevenZipCompressor.CompressDirectory(String directory, Stream archiveStream, String password, String searchPattern, Boolean recursion)&lt;br&gt;   at SevenZip.SevenZipCompressor.CompressDirectory(String directory, String archiveName, String password, String searchPattern, Boolean recursion)&lt;br&gt;   at SevenZip.SevenZipCompressor.CompressDirectory(String directory, String archiveName, Boolean recursion)&lt;/p&gt;</description><author>ksplem</author><pubDate>Thu, 16 May 2013 20:09:37 GMT</pubDate><guid isPermaLink="false">Commented Issue: Getting the following error on CompressDirectory - SevenZip.SevenZipException : The execution has failed due to the bug in the SevenZipSharp. [11670] 20130516080937P</guid></item><item><title>Created Issue: SevenZipExtractor.ExtractFile [11782]</title><link>http://sevenzipsharp.codeplex.com/workitem/11782</link><description>&amp;#62;The execution has failed due to the bug in the SevenZipSharp.&lt;br /&gt;&lt;br /&gt;&amp;#62;Please report about it to http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;WorkItem&amp;#47;List.aspx, post the release number and attach the archive.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;SevenZipExtractor.SetLibraryPath&amp;#40;Path.Combine&amp;#40;&lt;br /&gt;   &amp;#64;&amp;#34;C&amp;#58;&amp;#92;dll&amp;#34;, &lt;br /&gt;   &amp;#34;7z.dll&amp;#34;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;var buffer &amp;#61; new byte&amp;#91;&amp;#93; &amp;#123;&amp;#125;&amp;#59;&lt;br /&gt;using &amp;#40;var extractor &amp;#61; new SevenZipExtractor&amp;#40;handleDownloadedFile&amp;#41;&amp;#41;&lt;br /&gt;&amp;#123;                &lt;br /&gt;   extractor.ExtractFile&amp;#40;&lt;br /&gt;      &amp;#34;handle.exe&amp;#34;,      &lt;br /&gt;      new MemoryStream&amp;#40;buffer, true&amp;#41;&amp;#41;&amp;#59;      &lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My archive is the Handle.zip archive downloaded from &amp;#34;http&amp;#58;&amp;#47;&amp;#47;download.sysinternals.com&amp;#47;files&amp;#47;Handle.zip&amp;#34;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I use a FileStream instead of a MemoryStream It passes the extraction but I get a Win32Exception later when I try to use the extracted file&amp;#58;&lt;br /&gt;&amp;#62;&amp;#34;The process cannot access the file because it is being used by another process&amp;#34;&lt;br /&gt;</description><author>PantelisAr</author><pubDate>Wed, 15 May 2013 09:54:57 GMT</pubDate><guid isPermaLink="false">Created Issue: SevenZipExtractor.ExtractFile [11782] 20130515095457A</guid></item><item><title>New Post: A project using SevenZipSharp</title><link>http://sevenzipsharp.codeplex.com/discussions/440147</link><description>&lt;div style="line-height: normal;"&gt;Just thought I'd share a project I'm working on that uses SevenZipSharp&lt;br /&gt;
&lt;br /&gt;
Its a life saver and my project would have never come about if it weren't for this great library.&lt;br /&gt;
&lt;br /&gt;
Feel free to raid the source code for some more code examples, &lt;a href="http://jts.codeplex.com/" rel="nofollow"&gt;http://jts.codeplex.com/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>Montaro</author><pubDate>Sat, 13 Apr 2013 00:20:47 GMT</pubDate><guid isPermaLink="false">New Post: A project using SevenZipSharp 20130413122047A</guid></item><item><title>Commented Issue: the execution has failed due to the bug in sevenzipsharp [11461]</title><link>http://sevenzipsharp.codeplex.com/workitem/11461</link><description>I&amp;#39;m using NMM v.0.34.0 and whenever i&amp;#39;m trying to install a mod an error pops up and says the execution has failed due to the bug in sevenzipsharp&lt;br /&gt;Comments: ** Comment from web user: d79ima ** &lt;p&gt;I noticed that when trying to compress a folder with a lot of files i get this error using LZMA2 compression, but it only happens on my 8-core box. On my 2-core box it finishes compression just fine.&lt;/p&gt;&lt;p&gt;So based on this I think SevenZipSharp has some kind of a threading bug!&lt;br&gt;Please look into this&lt;/p&gt;</description><author>d79ima</author><pubDate>Tue, 09 Apr 2013 20:47:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: the execution has failed due to the bug in sevenzipsharp [11461] 20130409084712P</guid></item><item><title>Created Issue: Getting the following error on CompressDirectory - SevenZip.SevenZipException : The execution has failed due to the bug in the SevenZipSharp. [11670]</title><link>http://sevenzipsharp.codeplex.com/workitem/11670</link><description>When I attempt to call compress directory I am getting the following exception -&lt;br /&gt;&lt;br /&gt;SevenZip.SevenZipException &amp;#58; The execution has failed due to the bug in the SevenZipSharp.&lt;br /&gt;  Please report about it to http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;WorkItem&amp;#47;List.aspx, post the release number and attach the archive.&lt;br /&gt;     at SevenZip.SevenZipBase.ThrowException&amp;#40;CallbackBase handler, Exception e&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipBase.CheckedExecute&amp;#40;Int32 hresult, String message, CallbackBase handler&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressFilesEncrypted&amp;#40;Stream archiveStream, Int32 commonRootLength, String password, String fileFullNames&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, Stream archiveStream, String password, String searchPattern, Boolean recursion&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, String archiveName, String password, String searchPattern, Boolean recursion&amp;#41;&lt;br /&gt;     at SevenZip.SevenZipCompressor.CompressDirectory&amp;#40;String directory, String archiveName, Boolean recursion&amp;#41;&lt;br /&gt;     at Philips.PmsCT.Service.Infrastructure.Utilities.Common.Compression.SevenZipCompression.Compress&amp;#40;String folderToCompress, String archivePath, Boolean createNew, CompressionLevel compressionLevel&amp;#41;&lt;br /&gt;&lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt;</description><author>dhirajnayak</author><pubDate>Fri, 29 Mar 2013 05:10:05 GMT</pubDate><guid isPermaLink="false">Created Issue: Getting the following error on CompressDirectory - SevenZip.SevenZipException : The execution has failed due to the bug in the SevenZipSharp. [11670] 20130329051005A</guid></item><item><title>New Post: Compress stream as data written to stream?</title><link>http://sevenzipsharp.codeplex.com/discussions/438073</link><description>&lt;div style="line-height: normal;"&gt;What I want to do is write data to a memory stream (or a StreamWriter), and have that compressed on the fly using 7zip. Something like this (obviously I would want to write more useful data :)&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var fs = new FileStream(&amp;quot;Test.7z&amp;quot;, FileMode.Create);
var ms = new MemoryStream();

var compressor = new SevenZipCompressor();
compressor.CompressionMethod = CompressionMethod.Lzma2;
compressor.CompressionLevel = CompressionLevel.Normal;
compressor.CompressStreamDictionary(new Dictionary&amp;lt;string, Stream&amp;gt; { { &amp;quot;log.txt&amp;quot;, ms } }, fs);

for (int i = 0; i &amp;lt; 100; i++)
{
  ms.WriteByte(1);
}&lt;/code&gt;&lt;/pre&gt;

This just seems to create an empty archive; I don't think anything written to the memory stream after calling CompressStreamDictionary is being compressed.&lt;br /&gt;
&lt;br /&gt;
Is this possible?&lt;br /&gt;
&lt;/div&gt;</description><author>cocowalla</author><pubDate>Tue, 26 Mar 2013 20:21:48 GMT</pubDate><guid isPermaLink="false">New Post: Compress stream as data written to stream? 20130326082148P</guid></item><item><title>New Post: SevenZipSharp Extracting Event Progress Jumps?</title><link>http://sevenzipsharp.codeplex.com/discussions/438047</link><description>&lt;div style="line-height: normal;"&gt;Has anyone used the BeginCompressFiles method from SevenZipCompressor?&lt;br /&gt;
&lt;br /&gt;
The progress is reported in steps of 7, starting at 21%&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Dim tmp = New SevenZipCompressor(TempPath)
AddHandler tmp.Compressing, AddressOf SevenZip_Compressing
tmp.BeginCompressFiles(&amp;quot;C:\temp\test.zip&amp;quot;, C:\temp\test.jpg))

Private Sub SevenZip_Compressing(ByVal sender As Object, ByVal e As ProgressEventArgs)
Console.WriteLine(e.PercentDone)
End Sub
&lt;/code&gt;&lt;/pre&gt;

For BeginCompressDirectory and all extraction events the progress is reported as exprected (0 - 100 in steps of 1)&lt;br /&gt;
&lt;/div&gt;</description><author>madlan</author><pubDate>Tue, 26 Mar 2013 16:14:47 GMT</pubDate><guid isPermaLink="false">New Post: SevenZipSharp Extracting Event Progress Jumps? 20130326041447P</guid></item><item><title>New Post: Read a specific byte from a file (Without extracting)</title><link>http://sevenzipsharp.codeplex.com/discussions/437923</link><description>&lt;div style="line-height: normal;"&gt;I would like to read a specific byte from a file within a zip archive without extracting the whole file, is this possible?&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        Dim br As BinaryReader = New BinaryReader(ms)
        Dim lngStartPos As Long = 3756
        br.BaseStream.Seek(lngStartPos, SeekOrigin.Begin)
        Dim a As Byte = br.ReadByte()
        Dim b As Byte = br.ReadByte()
        Dim c As Integer = b * 256 + a&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>madlan</author><pubDate>Mon, 25 Mar 2013 17:07:00 GMT</pubDate><guid isPermaLink="false">New Post: Read a specific byte from a file (Without extracting) 20130325050700P</guid></item><item><title>New Post: Can not load 7-zip library or internal COM error! Message: failed to load library.</title><link>http://sevenzipsharp.codeplex.com/discussions/54207</link><description>&lt;div style="line-height: normal;"&gt;I encountered exactly the same issue today.&lt;br /&gt;
&lt;br /&gt;
Test code was running great from the Console application, but I got &amp;quot;the load library&amp;quot; error when running the code from my Outlook plugin.&lt;br /&gt;
The plugin is a x86 app written in C++ (unmanaged) that uses a mixture of unmanaged and managed code components.&lt;br /&gt;
&lt;br /&gt;
Procmon utility showed that the LoadImage call on 7z.dll was successful. But still I was getting the LoadLibrary error.&lt;br /&gt;
&lt;br /&gt;
I was able to get it to  work by re-targeting SevenZip .Net Library from any CPU to x86.&lt;br /&gt;
&lt;br /&gt;
I guess for x64 apps the SevenZip library should be compiled as x64 assembly&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Michael&lt;br /&gt;
&lt;/div&gt;</description><author>mdaniloff</author><pubDate>Fri, 22 Mar 2013 05:35:34 GMT</pubDate><guid isPermaLink="false">New Post: Can not load 7-zip library or internal COM error! Message: failed to load library. 20130322053534A</guid></item><item><title>Commented Issue: BeginExtractArchive craching the application [10244]</title><link>http://sevenzipsharp.codeplex.com/workitem/10244</link><description>if i do BeginExtractArchive on a corrupt rar file it crashes the application&lt;br /&gt;i can not catch the exception .&lt;br /&gt;Comments: ** Comment from web user: LouisRL ** &lt;p&gt;I'm having the same issue.&lt;/p&gt;</description><author>LouisRL</author><pubDate>Wed, 20 Mar 2013 12:28:45 GMT</pubDate><guid isPermaLink="false">Commented Issue: BeginExtractArchive craching the application [10244] 20130320122845P</guid></item><item><title>New Post: SevenZipExtractor constructor throws exception in CheckSignature</title><link>http://sevenzipsharp.codeplex.com/discussions/354841</link><description>&lt;div style="line-height: normal;"&gt;I'm not positive, I've download the latest 0.64 through NuGet, but seems to have the constructor bug you mention here. I press F12 to bring up the source, and it shows I've got a ctor with a string path, like I am expecting. However, I get the error here. Is there a new update I can download?&lt;br /&gt;
&lt;/div&gt;</description><author>mwpowellhtx</author><pubDate>Tue, 19 Mar 2013 23:54:29 GMT</pubDate><guid isPermaLink="false">New Post: SevenZipExtractor constructor throws exception in CheckSignature 20130319115429P</guid></item><item><title>New Post: PC without domain problem</title><link>http://sevenzipsharp.codeplex.com/discussions/436646</link><description>&lt;div style="line-height: normal;"&gt;I have a problem with a windows xp pc without domain.&lt;br /&gt;
The library does't work and return error while trying to compress directory.&lt;br /&gt;
&lt;br /&gt;
The same code work correctly if I register a domain on the pc, and work correctly with vista, win7 32 and 64bit.&lt;br /&gt;
&lt;br /&gt;
Can you help me?&lt;br /&gt;
&lt;br /&gt;
Thank's a lot!&lt;br /&gt;
&lt;/div&gt;</description><author>fabiomede</author><pubDate>Thu, 14 Mar 2013 15:13:37 GMT</pubDate><guid isPermaLink="false">New Post: PC without domain problem 20130314031337P</guid></item><item><title>Commented Issue: MultiVolume is not working for CompressFiles method [7953]</title><link>http://sevenzipsharp.codeplex.com/workitem/7953</link><description>If I define VolumeSize, then invoke CompressFiles method to archived one or more files, there isn&amp;#39;t any archived files created and without any exception.&lt;br /&gt;My code is like&amp;#58;&lt;br /&gt;Dim z7 As New SevenZip.SevenZipCompressor&lt;br /&gt;z7.VolumeSize &amp;#61; 1000000&lt;br /&gt;z7.CompressFiles&amp;#40;zipFile, fi.FullName&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;I checked the source code&amp;#40;Aug 26 version&amp;#41;, in SevenZipCompressor.cs, line 1097, I think it should be added &amp;#34;_volumeSize &amp;#61;&amp;#61; 0&amp;#34; to this if statement.&lt;br /&gt;Hope it can help you to fix it.&lt;br /&gt;Thanks.&lt;br /&gt;Comments: ** Comment from web user: vbwebprofi ** &lt;p&gt;I have added a not fully tested but pattern implemented patch, see #14085 [1] . Download of SevenZipCompressor.cs (zipped) is available under id #637889.&lt;/p&gt;&lt;p&gt;&lt;br&gt;[1] Patch list&lt;br&gt;http://sevenzipsharp.codeplex.com/SourceControl/list/patches&lt;/p&gt;&lt;p&gt;[2] Patch download #637889&lt;br&gt;http://www.codeplex.com/Download?ProjectName=sevenzipsharp&amp;amp;DownloadId=637889&lt;br&gt;&lt;/p&gt;</description><author>vbwebprofi</author><pubDate>Thu, 14 Mar 2013 11:22:41 GMT</pubDate><guid isPermaLink="false">Commented Issue: MultiVolume is not working for CompressFiles method [7953] 20130314112241A</guid></item><item><title>Patch Uploaded: #14085</title><link>http://sevenzipsharp.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/vbwebprofi'&gt;vbwebprofi&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Bugfix&amp;#63; of multiple volume issue &amp;#35;7953 &amp;#91;1&amp;#93;.&lt;br /&gt;&lt;br /&gt;I had the same problem at development but for work with dictionary of streams. According to the description of issue &amp;#35;7953 &amp;#91;1&amp;#93; and to the reply of piiper to discussion &amp;#35;263381 i followed the pattern at line 1379 of version 79962 and applied this also to line 1101, 1516 and 1627. It fixed my problem and may be all other related problem at other methods of this topic.&lt;br /&gt;&lt;br /&gt;&amp;#91;1&amp;#93; Issue &amp;#35;7953&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;workitem&amp;#47;7953&lt;br /&gt;&lt;br /&gt;&amp;#91;2&amp;#93; Discussion &amp;#35;263381&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;discussions&amp;#47;263381&lt;br /&gt;&lt;br /&gt;&amp;#91;3&amp;#93; Post of piiper to discussion &amp;#35;263381&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;sevenzipsharp.codeplex.com&amp;#47;discussions&amp;#47;263381&amp;#35;post712612&lt;/p&gt;</description><author>vbwebprofi</author><pubDate>Thu, 14 Mar 2013 08:54:57 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #14085 20130314085457A</guid></item><item><title>Created Issue: Installation Failed. [11634]</title><link>http://sevenzipsharp.codeplex.com/workitem/11634</link><description>Just like countless other people here, I have experienced....&lt;br /&gt;An error occurred during installation&amp;#58; The execution has failed due to the bug in the SevenZipSharp.&lt;br /&gt;Appreciate your attention on this matter.  Thanks.&lt;br /&gt;Firefall beta-1545r1&lt;br /&gt;</description><author>LoogaBarooga</author><pubDate>Tue, 12 Mar 2013 23:45:03 GMT</pubDate><guid isPermaLink="false">Created Issue: Installation Failed. [11634] 20130312114503P</guid></item><item><title>Created Issue: Determine 7Zip path from registry [11630]</title><link>http://sevenzipsharp.codeplex.com/workitem/11630</link><description>Alternately to setup 7Zip library location from application settings, determine the path under Windows from registry key &amp;#34;HKEY_LOCAL_MACHINE&amp;#92;SOFTWARE&amp;#92;7-Zip&amp;#34; and Value &amp;#34;&amp;#64;Path&amp;#34; of an installed 7Zip application.&lt;br /&gt;</description><author>vbwebprofi</author><pubDate>Tue, 12 Mar 2013 16:43:00 GMT</pubDate><guid isPermaLink="false">Created Issue: Determine 7Zip path from registry [11630] 20130312044300P</guid></item><item><title>New Post: CompressStream issue with TAR format archives</title><link>http://sevenzipsharp.codeplex.com/discussions/434921</link><description>&lt;div style="line-height: normal;"&gt;Not sure there is any help for this, but I think I know why TAR archives don't seem to extract properly for some people. And why the error message &amp;quot;There are data after end of archive&amp;quot; crops up when the extraction is attempted. &lt;br /&gt;
&lt;br /&gt;
I built a very simple WinForms app that creates 3 input memory streams and I Compress them using CompressStream (create on the first, append on the second 2). I give each a distinct name and all of the data is outputted to my output stream just fine. Then, so I can test the veracity of the archive, I outputted my output stream to a file stream and got it all on disk. Then using 7-zip itself I attempt to extract the 3 files from the archive. I end up with the first file on disk (which is perfect) and the error message &amp;quot;There are data after the end of archive&amp;quot;. So here's where it gets interesting...&lt;br /&gt;
&lt;br /&gt;
In tracing the SevenZipSharp code I found that despite the fact my input streams were less than 50 bytes, the resulting output stream is over 4 blocks long (~2048 bytes). So despite the fact I need less than a block to contain the compressed input stream, the output is over 2000 bytes of mostly empty space.&lt;br /&gt;
&lt;br /&gt;
After reading up a bit on the TAR specification I learned that the TAR spec calls for 2 blocks of empty data (1024 bytes) to be written to the end of the file (stream) to serve as an end of archive marker. Anybody else see the problem yet...&lt;br /&gt;
&lt;br /&gt;
BECAUSE CompressStream is adding THREE blocks of unneeded data for my 50 byte stream, an apparent end of archive structure is being put in place prematurely by the call to CompressStream. So when 7-zip starts extracting it does the first entry fine, but stumbles across 1024 empty bytes before it ever gets to my second entry. Hence the error &amp;quot;There are data after end of archive&amp;quot;. 7-zip thinks the end of archive is near the top of my archive and not at the bottom where it should find it.&lt;br /&gt;
&lt;br /&gt;
So, as far as I can tell, CompressStream is causing the problem. The TAR spec says that everything in a TAR archive should exist within a 512 byte block. Ok, fine. CompressStream should create exactly as many 512 byte blocks as needed to contain the data to be compressed and NO EXTRA blocks added. In my case I am getting THREE superfluous blocks for each tiny stream (50 byte) I pass in. &lt;br /&gt;
&lt;br /&gt;
We either need to fix the existing logic for CompressStream or add an overload that only creates as many blocks as really needed.&lt;br /&gt;
&lt;br /&gt;
I'm not sure of the process form here. How do things like this get fixed...or is it on me to fix it?&lt;br /&gt;
&lt;br /&gt;
Thanks for listening!&lt;br /&gt;
&lt;/div&gt;</description><author>ralan88</author><pubDate>Thu, 28 Feb 2013 20:17:43 GMT</pubDate><guid isPermaLink="false">New Post: CompressStream issue with TAR format archives 20130228081743P</guid></item><item><title>New Post: Can not load 7-zip library or internal COM error! Message: failed to load library.</title><link>http://sevenzipsharp.codeplex.com/discussions/54207</link><description>&lt;div style="line-height: normal;"&gt;Ok, after tracing the SevenZipSharp code within the context of a very simple WinForms app, it became apparent the kernel32 LoadLibrary method was where the failure was occurring. On a whim I re-downloaded the 7z.dll file and guess what...the problem disappeared. So it appears my problem the entire time was a corrupted dll. Glad I found it but I sure wish it didn't take me a day and a half to get to the bottom of it. &lt;br /&gt;
&lt;br /&gt;
So anyone else running in to this. If you've done everything suggested in these posts and it doesn't work...try getting a fresh copy of the dll.&lt;br /&gt;
&lt;/div&gt;</description><author>ralan88</author><pubDate>Thu, 28 Feb 2013 15:08:52 GMT</pubDate><guid isPermaLink="false">New Post: Can not load 7-zip library or internal COM error! Message: failed to load library. 20130228030852P</guid></item><item><title>New Post: Can not load 7-zip library or internal COM error! Message: failed to load library.</title><link>http://sevenzipsharp.codeplex.com/discussions/54207</link><description>&lt;div style="line-height: normal;"&gt;Does anyone know what the WINCE and MONO flags are about in the SevenZipSharp code?&lt;br /&gt;
&lt;/div&gt;</description><author>ralan88</author><pubDate>Thu, 28 Feb 2013 12:59:00 GMT</pubDate><guid isPermaLink="false">New Post: Can not load 7-zip library or internal COM error! Message: failed to load library. 20130228125900P</guid></item><item><title>New Post: Can not load 7-zip library or internal COM error! Message: failed to load library.</title><link>http://sevenzipsharp.codeplex.com/discussions/54207</link><description>&lt;div style="line-height: normal;"&gt;Try setting the following ... You may specify the custom path to 7-zip dll at SevenZipLibraryManager.LibraryFileName or call SevenZipExtractor.SetLibraryPath(@&amp;quot;c:\Program Files\7-Zip\7z.dll&amp;quot;); or call SevenZipCompressor.SetLibraryPath(@&amp;quot;c:\Program Files\7-Zip\7z.dll&amp;quot;);
 &amp;gt; ralan88 &amp;gt; Thursday, 28 February 2013 6:52 AM &amp;gt; &amp;gt; From: ralan88 &amp;gt; &amp;gt; One poster above claimed that the problem only exists for web &amp;gt; applications. So I have built a WinForms app that does nothing but try &amp;gt; to compress an input stream into an output stream.
 I have done &amp;gt; everything suggested in these posts and yet......I am still getting &amp;gt; the can't load library error. Here is the code. &amp;gt; &amp;gt; Please note that I have added the SevenZipSharp dll as a reference in &amp;gt; my project. Intellisense works perfectly so I know
 my ref is working. &amp;gt; Also, the 7z.dll can be found exactly where I'm telling the &amp;gt; SetLibraryPath to look for it AND it has full control privileges. &amp;gt; &amp;gt; So....what the heck am I missing? Why do other people seem to think &amp;gt; this so easy and yet I can't get
 it to load the library under &amp;gt; apparently any circumstance? &amp;gt; |try &amp;gt; { &amp;gt; MemoryStream inStream = new MemoryStream(); &amp;gt; MemoryStream outStream = new MemoryStream(); &amp;gt; StreamWriter sw = new StreamWriter(inStream); &amp;gt; sw.WriteLine(txtInputStream.Text); &amp;gt; sw.Flush();
 &amp;gt; &amp;gt; SevenZipBase.SetLibraryPath(@&amp;quot;C:\Program Files (x86)\7-Zip\7z.dll&amp;quot;); &amp;gt; &amp;gt; SevenZipCompressor comp = new SevenZipCompressor(); &amp;gt; &amp;gt; //comp.ArchiveFormat = OutArchiveFormat.Tar; &amp;gt; //comp.CompressionLevel = CompressionLevel.Normal; &amp;gt; //comp.CompressionMode
 = CompressionMode.Create; &amp;gt; //comp.CompressionMethod = CompressionMethod.Copy; &amp;gt; &amp;gt; comp.CompressionMethod = SevenZip.CompressionMethod.Lzma2; &amp;gt; comp.CompressionLevel = SevenZip.CompressionLevel.Normal; &amp;gt; // comp.DefaultItemName = &amp;quot;pr-123456&amp;quot;; &amp;gt; &amp;gt; inStream.Position
 = 0; &amp;gt; &amp;gt; //bool canRead = memStreamCompany.CanRead; &amp;gt; //bool canWrite = outStream.CanWrite; &amp;gt; &amp;gt; comp.CompressStream(inStream, outStream); &amp;gt; &amp;gt; outStream.Flush(); &amp;gt; outStream.Close(); &amp;gt; } &amp;gt; catch (Exception ex) &amp;gt; { &amp;gt; Console.WriteLine(ex.Message); &amp;gt; }| &amp;gt; &amp;gt; Read
 the full discussion online &amp;gt; . &amp;gt; &amp;gt; To add a post to this discussion, reply to this email &amp;gt; (sevenzipsharp@discussions.codeplex.com &amp;gt; ) &amp;gt; &amp;gt; To start a new discussion for this project, email &amp;gt; sevenzipsharp@discussions.codeplex.com &amp;gt; &amp;gt; &amp;gt; You are receiving this
 email because you subscribed to this discussion &amp;gt; on CodePlex. You can unsubscribe or change your settings &amp;gt; &amp;gt; on codePlex.com. &amp;gt; &amp;gt; Please note: Images and attachments will be removed from emails. Any &amp;gt; posts to this discussion will also be available online
 at codeplex.com &amp;gt;
&lt;div style="font-family:Comic Sans MS"&gt;&lt;span style="font-family:Comic Sans MS"&gt;Try setting the following ...&lt;br&gt;
&lt;br&gt;
You may specify the custom path to 7-zip dll at SevenZipLibraryManager.LibraryFileName
&lt;br&gt;
or call SevenZipExtractor.SetLibraryPath(@&amp;quot;c:\Program Files\7-Zip\7z.dll&amp;quot;);&lt;br&gt;
or call SevenZipCompressor.SetLibraryPath(@&amp;quot;c:\Program Files\7-Zip\7z.dll&amp;quot;);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/span&gt;&lt;br&gt;
&lt;blockquote type="cite" style="border:0px none"&gt;
&lt;div style="margin:30px 25px 10px 25px"&gt;
&lt;div style="display:table; width:100%; border-top:1px solid 
#EDEEF0; padding-top:5px"&gt;
&lt;div style="display:table-cell; vertical-align:middle; padding-right:6px"&gt;&lt;img src="cid:part1.06070804.02040804@aquarius.com.au" name="compose-unknown-contact.jpg" height="25px" width="25px"&gt;&lt;/div&gt;
&lt;div style="display:table-cell; white-space:nowrap; vertical-align:middle; width:100%"&gt;
&lt;a href="mailto:notifications@codeplex.com" style="color:#737F92!important; padding-right:6px; font-weight:bold; text-decoration:none!important"&gt;ralan88&lt;/a&gt;&lt;/div&gt;
&lt;div style="display:table-cell; white-space:nowrap; vertical-align:middle"&gt;&lt;font color="#9FA2A5"&gt;&lt;span style="padding-left:6px"&gt;Thursday, 28 February 2013 6:52 AM&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="color:#888888; margin-left:24px; margin-right:24px"&gt;
&lt;p&gt;From: ralan88&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody"&gt;One poster above claimed that the problem only exists for web applications. So I have built a WinForms app that does nothing but try to compress an input stream into an output stream. I have done everything suggested in
 these posts and yet......I am still getting the can't load library error. Here is the code.
&lt;br&gt;
&lt;br&gt;
Please note that I have added the SevenZipSharp dll as a reference in my project. Intellisense works perfectly so I know my ref is working. Also, the 7z.dll can be found exactly where I'm telling the SetLibraryPath to look for it AND it has full control privileges.
&lt;br&gt;
&lt;br&gt;
So....what the heck am I missing? Why do other people seem to think this so easy and yet I can't get it to load the library under apparently any circumstance?
&lt;br&gt;
&lt;div&gt;&lt;code&gt;try&lt;br&gt;
{&lt;br&gt;
MemoryStream inStream = new MemoryStream();&lt;br&gt;
MemoryStream outStream = new MemoryStream();&lt;br&gt;
StreamWriter sw = new StreamWriter(inStream);&lt;br&gt;
sw.WriteLine(txtInputStream.Text);&lt;br&gt;
sw.Flush();&lt;br&gt;
&lt;br&gt;
SevenZipBase.SetLibraryPath(@&amp;quot;C:\Program Files (x86)\7-Zip\7z.dll&amp;quot;);&lt;br&gt;
&lt;br&gt;
SevenZipCompressor comp = new SevenZipCompressor();&lt;br&gt;
&lt;br&gt;
//comp.ArchiveFormat = OutArchiveFormat.Tar;&lt;br&gt;
//comp.CompressionLevel = CompressionLevel.Normal;&lt;br&gt;
//comp.CompressionMode = CompressionMode.Create;&lt;br&gt;
//comp.CompressionMethod = CompressionMethod.Copy;&lt;br&gt;
&lt;br&gt;
comp.CompressionMethod = SevenZip.CompressionMethod.Lzma2;&lt;br&gt;
comp.CompressionLevel = SevenZip.CompressionLevel.Normal;&lt;br&gt;
// comp.DefaultItemName = &amp;quot;pr-123456&amp;quot;;&lt;br&gt;
&lt;br&gt;
inStream.Position = 0;&lt;br&gt;
&lt;br&gt;
//bool canRead = memStreamCompany.CanRead;&lt;br&gt;
//bool canWrite = outStream.CanWrite;&lt;br&gt;
&lt;br&gt;
comp.CompressStream(inStream, outStream);&lt;br&gt;
&lt;br&gt;
outStream.Flush();&lt;br&gt;
outStream.Close();&lt;br&gt;
}&lt;br&gt;
catch (Exception ex)&lt;br&gt;
{&lt;br&gt;
Console.WriteLine(ex.Message);&lt;br&gt;
}&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>glenharvy</author><pubDate>Wed, 27 Feb 2013 21:20:17 GMT</pubDate><guid isPermaLink="false">New Post: Can not load 7-zip library or internal COM error! Message: failed to load library. 20130227092017P</guid></item></channel></rss>