Setting Password causes Error

Jul 8, 2009 at 9:51 PM

I am trying to create a simple encrypted 7z file, I set the options, get the list of files and run CompressFiles it works fine, but if I do all the same logic but use CompressFilesEncrypted, it fails saying "The execution has failed due to the bug in the SevenZipSharp. Please report about it to, post the release number and attach the archive."  Am I missing something or doing something wrong. 

            Dim zippy As New SevenZip.SevenZipCompressor
            zippy.ArchiveFormat = OutArchiveFormat.SevenZip
            zippy.CompressionLevel = CompressionLevel.Ultra
            zippy.CompressionMethod = CompressionMethod.Lzma
            zippy.CompressionMode = CompressionMode.Create
            zippy.IncludeEmptyDirectories = False

            Dim Files() As String = Nothing
            'Build File List
            ProcessDirectory2(Root, zippy, Files)

            'Make File - no password - works
            zippy.CompressFiles("b:\7zip.7z", Files)

            'Make file - with password - error
            'zippy.CompressFilesEncrypted("b:\7zip.7z", "testing", Files)
Additional info that may be useful, running window 7 rc 64bit, visual studios 2008, compiling in x86 and using x86 dll.  Again works great without password...
Jul 9, 2009 at 7:56 AM

I am sure it is one of silly bugs. I will fix it on tuesday.

Jul 9, 2009 at 4:08 PM

Now I am not sure what the issue is/was.  Switched from the sevenzipshartp dll to the source instead and error has gone away.  Now both with and without password work just fine.  Will continue to test and see if I can reproduce the error.

Also, question, is there a way to set "Encrypt filenames" option or do I need to use the customparameters to set this option?