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

New Post: Where is SevenZipSfx?

$
0
0
the SevenZipSharp 0.64 can not find SevenZipSfx?
because you not release SevenZipSfx
the code:

if SFX

……

end if

but you not add it in Defines.

Created Unassigned: bug in the SevenZipSharp at filename with in an archive having double quote [12477]

$
0
0
__DLL:__ SevenZipSharp.dll
__Version:__ 0.64.4853.33402
__My Observations:__ File name in an archive has (") but by using 7-zip software it converted in to Underscore (_) and extracted successfully. but by using this library from c# 2010 i got this following exception.

SevenZip.SevenZipException was unhandled
Message=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.
Source=SevenZipSharp
__StackTrace:__
at SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e)
at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler)
at SevenZip.SevenZipExtractor.ExtractFiles(String directory, Int32[] indexes)
at WindowsFormsApplication1.Form1.unZip(String zipToExtract, Boolean t, String msg) in C:\Documents and Settings\tsk\Desktop\codes\BUGAUTOMATION\BUGAUTOMATION\Form1.cs:line 2633
at WindowsFormsApplication1.Form1.button3_Click(Object sender, EventArgs e) in C:\Documents and Settings\tsk\Desktop\codes\BUGAUTOMATION\BUGAUTOMATION\Form1.cs:line 156
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsFormsApplication1.Program.Main() in C:\Documents and Settings\tsk\Desktop\codes\BUGAUTOMATION\BUGAUTOMATION\Program.cs:line 23
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
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()
InnerException:

New Post: CustomParameters Argument exception: Value does not fall within the expected range.

$
0
0
Hi.

Currently creating multivolume archives is not supported for zip files (and even if it was, the type of VolumeSize-property is int, so creating >~2gb volumes would be impossible nevertheless), so I'm trying to achieve this by doing
zip.CustomParameters.Add("v", "2500m");
However, after that when I call zip.CompressDirectory, ArgumentException is thrown with message "Value does not fall within the excepted range.", stacktrace tells that it happens at SevenZip.ISetProperties.SetProperties(IntPtr names, IntPtr values, Int32 numProperties).

Any suggestions?

Created Unassigned: Size limit while working with memory stream [12511]

$
0
0
I am passing array of bytes and using Memory Stream for compression and decompression. Code execute successfully up to some limit like below array size less than 100mb. Once size of byte array grows I face issue while compressing with compression level ULTRA, If I change ULTRA to LOW then compression works. But then I face issue while decompressing. The error message is very generic as given below:

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.

It looks like it could be related to outofmemory exception. I am using version 0.64.3890.29348.
Guys any thoughts or workaround for this, please suggest.

Thanks
Vinay

Created Unassigned: Failed due to the bug in SevenZipSharp [12525]

$
0
0
Hi I am having problems in installing a particular mod using the program Nexus Mod Manager for Fallout New Vegas - which happens to use your program. I can confirm that the file has no errors as I have checked it with 7zip and also contacted the mod maker himself. I cannot provide the file as it is quite big - 878,714kb compressed. The mod can be downloaded from http://newvegas.nexusmods.com/download/1000004058 and use any server. The version of SevenZipSharp that is used by Nexus Mod Manager is 0.64.3890.29348

I have contacted the makers of Nexus Mod Manager - I am still waiting for their reply.

Do you have any suggestion on how to fix this? Could some file be missing from Nexus Mod Manager? Or any advise would be amazing. I really wish to install the mod.

Regards Number

New Post: CompressFiles and keep path (directory structure)

$
0
0
Using SevenZipCompressor (named c) from 0.64 and .Net 4.0 in 64 bits windows 8.1.
c.CompressionMode = SevenZip.Create;
c.PreserveDirectoryRoot = true;
c.DirectoryStructure = true;
c.CompressDirectory(aDirectoryName, archiveName);
c.CompressionMode = SevenZip.Append;
c.CompressDirectory(anotherDirectoryName, archiveName);
c.CompressFiles(archiveName, fullFileNames);

Directories (in the archive) are created representing the 2 calls to CompressDirectory(),
however, the call to CompressFiles() adds the files at the archives "top level", i.e. structure is lost.

How to do correctly ?
(Actually what I want to do is to CompressDirectory() but only partly and not by search pattern, but by an array of filenames or something similar).

New Post: Fix to IntEventArgsHandler

$
0
0
IntEventArgsHandler can be called when _file is null (e.g. SevenZipExtractor.CurrentLibraryFeatures) so adding a check here prevents a useless exception:
private void IntEventArgsHandler(object sender, IntEventArgs e) {
    if (_files != null) { // YD
        lock (_files) {
             ...
        }
    }  // YD
}

Created Unassigned: Installation Failed (FireFall beta) [12548]

$
0
0
I have been trying to install this game for 48 hr now. Every time the installation finishes this error pops up saying " Installation Failed. An error occurred during installation : The execution has failed due to the bug in the SevenZipSharp"

New Post: Packed Size

$
0
0
I am using a utility to calculate compression ratios of certain file-types, but apparently the PackedSize property is not exposed in the API. Is there some way to view this information from the API? I am currently using ArchiveFileInfo to get "Size", but it appears that's the original file size.

Thank you in advance!

New Post: Packed Size

$
0
0
I was able to manually adjust it in the code, branched from release 0.64 code. I had issues with some of the more recent commits.

New Post: Fix to IntEventArgsHandler

$
0
0
You're welcome.

What you did to fix this is not the ideal thing. Sure, ArchiveUpdateCallback is internal but it's wiser, to use a "private object _instanceAccess = new object();" and lock onto it rather than "this".
private void IntEventArgsHandler(object sender, IntEventArgs e) {
    lock (this) {

New Post: Fix to IntEventArgsHandler

New Post: InvalidCastException when calling SevenZipExtractor.Dispose()

$
0
0
I had this when I tried to call extractor.Dispose() in a class destructor that the garbage collector would call whenever it felt like doing its job. At program shutdown, the destructor would be called too late (after unloading the dll?) and this exception would be thrown. I resolved it by ensuring every instance of the extractor be disposed of before allowing the shut down to proceed.

Created Unassigned: Problem installation Skyrim Ultra HD texture pack with Nexus [12594]

$
0
0
Every time i try to install this mod with the Nexus, the program tells me "A problem occurred during install:
The execution has failed due to the bug in sevenzipsharp.
Please report about it to sevenzipsharp.codeplex.com/workitem/list/basic, post the release number (what is the release number?) and attach the archive.

I did not understand what should i do.

Thanks

New Post: BeginCompressDirectory - more than one file issue

$
0
0
Hi,

I have created simple application using Sevenzip library.
I would like to compress selected directory. I have implemented this actions using BeginCompressDirectory() function. Everything works fine if in directory is just one file. Progress event is correctly fired and I see what is the current status of compression.
Window with compression action is called from upper WForm using ShowDialog().
I have pinned a function to Compressing event and everything works fine

However if I add a second file to this directory the Compressing event is not fired and I don't see current status of compression.

Any ideas what can be wrong ?

Few lines of my code:
//this is call of window with progress bar and function for compression
newCompression.ShowDialog();
compEngine.Compressing          += new EventHandler<ProgressEventArgs>(zip_Compressing);
compEngine.CompressionFinished  += new EventHandler<EventArgs>(zip_ObjectCompressionCompleted);
                
                if (isFolderType)
                    compEngine.BeginCompressDirectory(FileNameToCompress, outFileNameToCompress);

public void zip_Compressing(object sender, ProgressEventArgs e)
        {
            progressBar1.Increment(e.PercentDelta);
            groupBox_Processing.Text = string.Format("Processing: In Progress [{0}%]", progressBar1.Value);
            Refresh();            
        }
BR,
di4blo

Created Unassigned: This is probably a bug... [12603]

$
0
0
Hello SevenZip Team. I am receiving this error while attempting to save a game scenario I am building. Version is 0.64.3890.29348

Please see attached screenshot...

Reviewed: SevenZipSharp 0.64 (Dec 22, 2013)

$
0
0
Rated 5 Stars (out of 5) - Hi. I have been programming for over 40 years. Thus, I speak as an authority. If you are looking for Microsoft documentation of classes, you are not going to find it here. Instead, what you get are working examples from the source code, that you can copy and place into your own development. So if you don't know how to do something, just take it from the samples. Be sure and bring down all the samples. Why? Because they all actually are from a single demo project "Seven Zip". Secondly, everything is in .Net 2.0, which probably you will want to change. Just go into the SevenZip project,go to properties and change to the version of .Net you want, and do this in the other projects as well. Your focus should be on FormMain.cs, and Program.cs within the Test. Looking at the code, the lack of comments may disturb you. However, be forgiving in this because the languages of the developer(s) who created this product was likely not English, but rather Russian. Rather the language you are offered here is that of a "programmer" in his code, and that is well done. This product can always need more of what it already has, but it is a heroic effort, worthy of praise, and your use. Love PastorBurt.

Created Unassigned: Library File Name Exception [12615]

$
0
0
Hi,

In LibraryManager class, you set _libraryFileName like this :

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

You can have an ArgumentException "The path is not of a legal form." with this line if "Assembly.GetExecutingAssembly().Location" is empty.
This is my case...

I fixed it temporaly by setting this variable to null and using SetLibraryPath method.

Could you please fix this issue?

Thanks,
Kacem

Commented Unassigned: Library File Name Exception [12615]

$
0
0
Hi,

In LibraryManager class, you set _libraryFileName like this :

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

You can have an ArgumentException "The path is not of a legal form." with this line if "Assembly.GetExecutingAssembly().Location" is empty.
This is my case...

I fixed it temporaly by setting this variable to null and using SetLibraryPath method.

Could you please fix this issue?

Thanks,
Kacem
Comments: ** Comment from web user: kacem **

It doesn't fix the issue, because of null value for ___files__ variable in __IntEventArgsHandler__ method...

Created Unassigned: Cannot find type System.MarshalByRefObject in module mscorlib.dll. [12623]

$
0
0
Hi,

I am just trying to create a Metro app by using the SevenZipSharp. I have install the SevenZipSharp from nuget. but when I am building the project it gives me the following error.

__Error 1 Cannot find type System.MarshalByRefObject in module mscorlib.dll.


Error 18 The base class or interface 'System.MarshalByRefObject' in assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' referenced by type 'SevenZip.SevenZipBase' could not be resolved__

Thanks.
Viewing all 318 articles
Browse latest View live


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