Quantcast
Channel: SevenZipSharp
Viewing all 318 articles
Browse latest View live

Created Unassigned: While compressing directory using 7z.dll in c# the first charecter is missing [12643]

$
0
0
I am using the below code to compress the directory.

__var sevenZipArchive = new SevenZipCompress();
SevenZipBase.SetLibraryPath(@"7z.dll");
sevenZipArchive.CompressDirectory(DirectoryName, archiveFileName);__

The directory which I have given for compression contains JBD Direcoty (it has lot of sub directories inside in it) & export.mdb file.

When I look at the compressed file after performing the operation the entries in the archive file BD & xport.mdb (the first charecter is missing).

Does any body faced the same problem. Please help me.

Created Unassigned: extraction issue [12651]

$
0
0
Hi,

I am using SevenZipSharp to decompress a RAR archive and even though I set the "PreserveDirectoryStructure" flag to False, the folder(s) get extracted as empty folders.

For example, if this is my Archive File:

Archive.rar
|
--- Folder1 > File1, File2
|
--- Folder2 > FileA, FileB

and then I look at the extracted contents I have this:

Folder1
Folder2
File1
File2
FileA
FileB

So, it doesn't preserve the directory structure, but it still extracts empty folders. Why extract empty folders if you do not want to preserve the directory structure?? It doesn't make sense. Anyway, is there any additional flag or something I am missing so this doesn't happen?

Thanks in advance!

Patch Uploaded: #15716

$
0
0

benxbenx has uploaded a patch.

Description:
the patch is releated to split archives (7z.001, 7z.002 ...):
(i use latest source und 7z.dll 9.20)

----------------------------------------------
Patch 1 - MultiStreamWrapper.Seek
i have had a big split archive an the caller (7z.dll) called Seek with SeekOrigin.End and Offset=-500 during extraction -> Exception
(there is another maybe wrong seek-Implementation here in ArchiveEmulationStreamProxy that has to be fixed?)
----------------------------------------------
Patch 2 - Initialization/Dispose-Problem
when i use

using (var extractor = new SevenZipExtractor(srcZipFile){
...
}

to extract split archive 2 got 2 nullref-Exceptions. The line
private ReadOnlyCollection<string> _volumeFileNames = new ReadOnlyCollection<string>(new List<string>());

is not a very good patch but the initialization and use of _volumeFileNames seems to be a litte bit blurry.







Reviewed: SevenZipSharp 0.64 (Jan 23, 2014)

$
0
0
Rated 4 Stars (out of 5) - The Release is good and stable, but we had some huge performance problems in our application. my proposal would be to remove the GC.Collect call in Method SetOperationResult(OperationResult operationResult) in class ArchiveUpdateCallback.cs. In our application it gets a speedup of factor 400. maybe others could also benefit of that. i am not really sure that you have to call manually GC.Collect here.

New Post: The path is not of a legal form.

$
0
0
Hi guys.
I've run into this kind of issue, the last days, and it took me quite a while to find a solution.
Even if it's not a perfect one.

I had to add this line to my code
ConfigurationManager.AppSettings["7zLocation"] = sevenZipPath;

I went here after reading the source code of SevenZipSharp and I found this line:

__

internal static class SevenZipLibraryManager
...
    private static string _libraryFileName = ConfigurationManager.AppSettings["7zLocation"] ??
        Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "7z.dll");
__


Without the previous line the code was blowing with an exception of invalid path when I called the method bellow.
I can assure you that the path is a perfect valid path, I've a lot of verifications before calling this line, and If I get a bad path I must throw an exception . . .

SevenZipBase.SetLibraryPath(sevenZipPath);

From your experience do you have any ideas of other workaround ? Is it related to how I'm referencing the DLL ?
Thanks in advance for your help.

New Post: Important threading issue - Extracting in 5 threads

$
0
0
I have tried to integrate your SevenZipSharp library into my windows service and I have a lot of trouble related to threading.

When I use the library in a single thread environment, it work perfectly. As soon as I try to use it with thread ( using TPL in C# 4 ), it start to failed all over the place.

So, I return back to you Test Program and use the Multi-threaded extraction test examples that you give. Running it a couple of times, and it also failed.

Example of error that occurs are :
On this line :
using (var tmp = new SevenZipExtractor(@"D:\AutomatedBuild\LotOfFiles_2.zip")) Error : {"An item with the same key has already been added."}
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value)
at SevenZip.SevenZipLibraryManager.InitUserInFormat(Object user, InArchiveFormat format)
at SevenZip.SevenZipLibraryManager.LoadLibrary(Object user, Enum format)
at SevenZip.SevenZipExtractor.Init(String archiveFullName)
at SevenZip.SevenZipExtractor..ctor(String archiveFullName)
at ConsoleApplication33.Program.<Main>b__3() in c:\users\sebastien.maisonneuv\documents\visual studio 2010\Projects\ConsoleApplication33\ConsoleApplication33\Program.cs:line 35
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Any one have any idea of what I'm doing wrong ??

New Post: Important threading issue - Extracting in 5 threads

$
0
0
Does this project continue to be alive or is now dead ? I don't see a lot of activity in it. Does anybody have idea to help me use this library, I need this fast, otherwise I will switch to something else. But this one was good... I need extraction of both zip and rar and 7z. And not a lot of library do this.

New Post: 7zip RDB support?

$
0
0
Hi all.

I've used 7zip to extract the contents of a .RDB files. When I do so, it creates a folder with a number of files in it. It's strange, since RDB isn't necessarily a compressed file, but 7zip knows what to do with it and how to decompress it.

My question is, how do I do this with SevenZipSharp? What is 7zip doing to the RDB files to extract it? Is it treating it like another file format?

I've tried running the 7zip command line version on the file and it won't work either, so I'm wondering what voodoo the program is doing that's allowing it to do this.

New Post: 7zip RDB support?

$
0
0
SevenZipSharp newest release was actually a number of years ago. If you read the correspondence you will eventually realize that there has been no new development for this library for several years. The fellow who wrote this library has apparently lost interest. I wrote him several times on matters he should have been happy to respond to, but he did not reply.

Thus, understand that the fellow who developed this library is not working in association with the fellow who is maintaining and at times adding new features to 7Zip. No one here will be able to answer your question because they have not been active with this product for several years. That being said, this library is a safe library to use for compressing and unzipping archives. If you try to do something such as RDB with SevenZipSharp, it may work for you. But you must be realistic. Without anyone running this project any more, be prepared to be disappointed.

Sincerely,

Pastor Burt

New Post: Important threading issue - Extracting in 5 threads

$
0
0
I received an inquiry from another developer who asked a question quite similar to yours. I will try and answer you and so others will understand as well..

SevenZipSharp newest release was actually a number of years ago. If you read the correspondence you will eventually realize that there has been no new development for this library for several years. The fellow who wrote this library has apparently lost interest. I wrote him several times on matters he should have been happy to respond to, but he did not reply.

Thus, understand that the fellow who developed this library is not working in association with the fellow who is maintaining and at times adding new features to 7Zip. No one here will be able to answer your question because they have not been active with this product for several years. That being said, this library is a safe library to use for compressing and unzipping archives. But you must be realistic. Without anyone running this project any more, be prepared to be disappointed.

In answer to your question, yes, the library had or has considerable potential. I am using it myself but ran into a number of roadblocks where features that should have been there and even that were claimed to be there, were not there. Consequently, I then decided to use DotNetZip, and found once again some problems and it too appears to no longer be really supported either. Subsequently, for my project I am now using actually BOTH libraries, but in a more limited way then I would have like were either of these products still being supported - which they are not. You will find that you will be able to do the necessary things, but beyond that be prepared to write a lot of code yourself.

Sincerely,

Pastor Burt

New Post: Important threading issue - Extracting in 5 threads

$
0
0
A big thank you Pastor Burt to have answer my question !

I am currently using SharpZipLib which work pretty well actually. But it only support .zip file, not rar files.

Unfortunately I am not in a position to use a library that is no more supported. I am sorry to see that SevenZipSharp is no more supported, since it was able to support more type of compression, which I need. But without support, it's not an option. I will probably go with the command-line 7zip directly for the rar file.


Thanks for your information !

New Post: Important threading issue - Extracting in 5 threads

$
0
0
I also too have the Sharp Library but am withdrawing it. It TOO is no longer supported by anyone. Using command line is a good option, but I need more functionality. SevenZipLib is ok, to be used sparingly. My hope is that it does not go completely South by the time Windows 9 comes out. Then I will be screwed. Let me be clear about this. That fellow who use to behind the SevenZipLib did not respond to me. Thus, I decided to respond truthfully to you. Now if he doesn't like that or doesn't want to have his product labeled as DEAD, then he is going to have to in writing come out and contradict what I wrote. In other words, he no longer can ignore those of us who otherwise wish to use his library. If he doesn't reply - which I think he won't - then the product is exactly as I described to you - no longer supported. Sincerely, Pastor Burt On 2/11/2014 8:28 PM, hockeymtl555 wrote: > > From: hockeymtl555 > > A big thank you Pastor Burt to have answer my question ! > > I am currently using SharpZipLib which work pretty well actually. But > it only support .zip file, not rar files. > > Unfortunately I am not in a position to use a library that is no more > supported. I am sorry to see that SevenZipSharp is no more supported, > since it was able to support more type of compression, which I need. > But without support, it's not an option. I will probably go with the > command-line 7zip directly for the rar file. > > > Thanks for your information ! > > Read the full discussion online > . > > To add a post to this discussion, reply to this email > ([email removed] > ) > > To start a new discussion for this project, email > [email removed] > > > You are receiving this email because you subscribed to this discussion > on CodePlex. You can unsubscribe or change your settings > > on codePlex.com.> > Please note: Images and attachments will be removed from emails. Any > posts to this discussion will also be available online at codeplex.com > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2014.0.4259 / Virus Database: 3697/7083 - Release Date: 02/11/14 > -- *Pastor Burt Wilkins* *Auto Shutdown Pro* Miralhens Apartment, Apartment A, Jupiter Street, San Felipe Subdivision, Mojon District, 3000 Malolos City, Bulacan http://www.AutoShutdownPro.com http://www.AutoShutdownFree.com Email: [email removed] Philippine phone to the US: *(951)530-9138 *Philippines Phone: (912)738-3132 Local Philippines Land Line: +63-44-796-3629 I also too have the Sharp Library but am withdrawing it. It TOO is no longer supported by anyone.

Using command line is a good option, but I need more functionality.

SevenZipLib is ok, to be used sparingly. My hope is that it does not go completely South by the time Windows 9 comes out. Then I will be screwed.

Let me be clear about this. That fellow who use to behind the SevenZipLib did not respond to me. Thus, I decided to respond truthfully to you. Now if he doesn't like that or doesn't want to have his product labeled as DEAD, then he is going to have to in writing come out and contradict what I wrote. In other words, he no longer can ignore those of us who otherwise wish to use his library. If he doesn't reply - which I think he won't - then the product is exactly as I described to you - no longer supported.

Sincerely,

Pastor Burt


On 2/11/2014 8:28 PM, hockeymtl555 wrote:

Pastor Burt Wilkins

Auto Shutdown Pro

Miralhens Apartment, Apartment A,

Jupiter Street, San Felipe Subdivision,

Mojon District, 3000 Malolos City, Bulacan

http://www.AutoShutdownPro.com

http://www.AutoShutdownFree.com

Email: [email removed]

Philippine phone to the US:(951)530-9138
Philippines Phone: (912)738-3132
Local Philippines Land Line: +63-44-796-3629

Created Unassigned: Compress exception [12745]

$
0
0
SevenZip.SevenZipException: The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.
at SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e)
at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(Stream archiveStream, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(String archiveName, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFiles(String archiveName, String[] fileFullNames)
at SNG.Data.Importers.SourceDataImporter.ImportDataChFile(String file, FastConvertWorker converter, SourceInfo info, String resultFile, SevenZipCompressor compressor, String tempDir)
at SNG.Data.Importers.SourceDataImporter.ImportFiles(String directoryPath, SourceInfo info)
at SNG.Data.Importers.SourceDataImporter.Import()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

0.64.3890.29348

Created Unassigned: Cannot set PPMD for zip, also AES + LZMA Crash [12746]

$
0
0
Hey guys, ive got 2 odd issues.

First one is that if I set the compression format to zip, I cannot set the compression method to PPMD, it just jumps to default.

Another Issue is that when I set encryption to AES and method to LZMA, the library will crash the program.

I really need help on this.
Ive replaced the 7z.dll, first with the one provided here and also with the latest on on 7zip.

Commented Unassigned: Cannot set PPMD for zip, also AES + LZMA Crash [12746]

$
0
0
Hey guys, ive got 2 odd issues.

First one is that if I set the compression format to zip, I cannot set the compression method to PPMD, it just jumps to default.

Another Issue is that when I set encryption to AES and method to LZMA, the library will crash the program.

I really need help on this.
Ive replaced the 7z.dll, first with the one provided here and also with the latest on on 7zip.
Comments: ** Comment from web user: Meganubis **

Ive fixed the PPMD issue, ive just took out the case statement in the IsValid Function in the Compressor class.

The LZMA issue still persists


New Post: Important threading issue - Extracting in 5 threads

$
0
0
Dear HockeyMTI555: I am emailing you to now thank you. I have been working on a zipping program for some time. I have tried many approaches or libraries looking for the best. I thought I had the BEST approach at last defined and was hopeful development could go forward with more results and a solid blueprint for completion. You email and decision to go to "/command-line 7zip directly for the rar file/" caused me to pause. I was not attracted to this, so I had not tried this approach. But the more I considered your response, I came to conclude that possibly it would be a workable solution. Consequently, I tried it and was quite satisfied. You were right, and I am pleased with the result. Consequently, I too am abandoning both SevenZipSharp and DotNetLib. There were so many things wrong with SevenZipSharp that forced me to compromise, I just was not happy with it. So far the direct 7Zip approach has been able to succeed where SevenZipSharp failed. The DotNetLib approach did work well, but it was limited only to Zip and nothing else. The Command Line approach, which I have tested, has the ability to have a unified approach that will work with a variety of the archives, and this I like. Thank you for your response as well. It caused me to second guess my conclusions and this time the results appear to be very positive. I very much appreciate your second set of eyes. Sincerely, Pastor Burt On 2/11/2014 8:28 PM, hockeymtl555 wrote: > > From: hockeymtl555 > > A big thank you Pastor Burt to have answer my question ! > > I am currently using SharpZipLib which work pretty well actually. But > it only support .zip file, not rar files. > > Unfortunately I am not in a position to use a library that is no more > supported. I am sorry to see that SevenZipSharp is no more supported, > since it was able to support more type of compression, which I need. > But without support, it's not an option. I will probably go with the > command-line 7zip directly for the rar file. > > > Thanks for your information ! > > Read the full discussion online > . >> To add a post to this discussion, reply to this email > ([email removed] > ) > > To start a new discussion for this project, email > [email removed] > > > You are receiving this email because you subscribed to this discussion > on CodePlex. You can unsubscribe or change your settings > > on codePlex.com. > > Please note: Images and attachments will be removed from emails. Any > posts to this discussion will also be available online at codeplex.com > > No virus found in this message. > Checked by AVG - www.avg.com> Version: 2014.0.4259 / Virus Database: 3697/7083 - Release Date: 02/11/14 > -- *Pastor Burt Wilkins* *Auto Shutdown Pro* Miralhens Apartment, Apartment A, Jupiter Street, San Felipe Subdivision, Mojon District, 3000 Malolos City, Bulacan http://www.AutoShutdownPro.com http://www.AutoShutdownFree.com Email: [email removed] Philippine phone to the US: *(951)530-9138 *Philippines Phone: (912)738-3132 Local Philippines Land Line: +63-44-796-3629 Dear HockeyMTI555:

I am emailing you to now thank you. I have been working on a zipping program for some time. I have tried many approaches or libraries looking for the best.

I thought I had the BEST approach at last defined and was hopeful development could go forward with more results and a solid blueprint for completion.

You email and decision to go to "command-line 7zip directly for the rar file" caused me to pause. I was not attracted to this, so I had not tried this approach. But the more I considered your response, I came to conclude that possibly it would be a workable solution. Consequently, I tried it and was quite satisfied.

You were right, and I am pleased with the result. Consequently, I too am abandoning both SevenZipSharp and DotNetLib. There were so many things wrong with SevenZipSharp that forced me to compromise, I just was not happy with it. So far the direct 7Zip approach has been able to succeed where SevenZipSharp failed. The DotNetLib approach did work well, but it was limited only to Zip and nothing else. The Command Line approach, which I have tested, has the ability to have a unified approach that will work with a variety of the archives, and this I like.

Thank you for your response as well. It caused me to second guess my conclusions and this time the results appear to be very positive. I very much appreciate your second set of eyes.

Sincerely,

Pastor Burt



On 2/11/2014 8:28 PM, hockeymtl555 wrote:

Pastor Burt Wilkins

Auto Shutdown Pro

Miralhens Apartment, Apartment A,

Jupiter Street, San Felipe Subdivision,

Mojon District, 3000 Malolos City, Bulacan

http://www.AutoShutdownPro.com

http://www.AutoShutdownFree.com

Email: [email removed]

Philippine phone to the US:(951)530-9138
Philippines Phone: (912)738-3132
Local Philippines Land Line: +63-44-796-3629

Created Unassigned: SevenZip.SevenZipException: The execution has failed due to the bug in the SevenZipSharp [12795]

$
0
0
Hello. I keep getting the below exception from the "CompressFiles" when compressing a single binary file.

7z version: 0.64.3890.29348

code segment:
ThreadPool.QueueUserWorkItem(new WaitCallback(delegate(object state)
{
try
{
szc.CompressFiles(localProcMonZipPath, localProcMonReportPath);
}
finally
{
zipComplete.Set();
}
}));

SevenZip.SevenZipException: The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.
at SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e)
at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(Stream archiveStream, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(String archiveName, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFiles(String archiveName, String[] fileFullNames)
at NewYorkLauncher.NewYorkLauncher.<>c__DisplayClass11.<HandleInstaller>b__b(Object state) in c:\dev\NewYorkProject\NewYorkLauncher\NewYorkLauncher.cs:line 548
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Reviewed: SevenZipSharp 0.64 (Mar 13, 2014)

$
0
0
Rated 5 Stars (out of 5) - Hi. I have been programming for over 40 years. Thus, I speak as an authority. When I started with this library I gave it an excellent rating. However, after two months of working with it every day, I have to remove that rating. There is simply too many things in this library that just DON’T WORK. Moreover, the library is not supported at all. The last release was 4.5 years ago. The author of the library has lost all interest in this library and does not respond to anything concerning it. I also tried DotNetZip, and found that it too simply was no longer supported at all. Finally at the advice of others, I began to integrate 7z.exe directly through the command line integrated into my .Net WinForm development. Everything worked and worked well. Moreover, 7z.exe is being aggressively supported. The last release was in December, 2013, and the author has been supporting the product faithfully now for years. You can and should integrate 7z.exe into your Windows applications, and nothing else. Sincerely, Pastor Burt.

New Post: BeginCompressDirectory - more than one file issue

$
0
0
I'm having similar issue with
BeginCompressFiles(string archiveName, params string[] fileFullNames);

"Compressing" event never fires if the array contains more than one file

Created Unassigned: Compressing event not fired [12833]

$
0
0
When compressing more than one file, Compressing event is not fired

tried at least with the following:

BeginCompressFiles(string archiveName, params string[] fileFullNames);
CompressFiles(string archiveName, params string[] fileFullNames);
Viewing all 318 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>