Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › Failed to create a unique MemoryFolder root
I’m getting an error in the constructor call for a new MemoryFile.
MemoryFile mf = new MemoryFile();
In the constructor it creates and Memoryroothandler and throws the exception on me(Failed to create a unique MemoryFolder root)
Any ideas what could be happening with that?
public MemoryRootHandler() : base(null, “”)
this.m_worldName = string.Empty;
this.m_worldName = “RAM” + this.GetHashCode();
throw new FileSystemInternalException(“Failed to create a unique MemoryFolder root.”);
base.m_exists = true;
Imported from legacy forums. Posted by jason (had 2196 views)
Could you please tell us which version of the Xceed Zip for .NET you are using? You might try to upgrade to the latest version and check whether you still observe the exception.
Imported from legacy forums. Posted by Mohamed [Xceed] (had 1483 views)
I’m using version 2.1.5179.0. I was not able to find any mention of this kind of error fixed in the service packs.
Imported from legacy forums. Posted by jason (had 1411 views)
Mohamed any ideas with that version?
Imported from legacy forums. Posted by jason (had 1610 views)
Although I am not sure that this will help, you could try this:
MemoryFolder myMemFolder = new MemoryFolder(“RAM:\Data\Images\Gifs”);
If the path doesn’t exist, it will be created. (Well, this is true for the latest version. Perhaps not true with version 2.1!)
If this doesn’t work, you could consider updating your component. Version 2.1 of Zip for .NET is more than 3 years old.
Imported from legacy forums. Posted by Ghislain (had 2240 views)