Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Failed to create a unique MemoryFolder root

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20174 |

    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();
        if (m_worlds.Contains(this.m_worldName))
        {
            throw new FileSystemInternalException(“Failed to create a unique MemoryFolder root.”);
        }
        m_worlds.Add(this.m_worldName, this);
        base.m_exists = true;
    }
    

    Imported from legacy forums. Posted by jason (had 2196 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Jason,

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

    User (Old forums)
    Member
    Post count: 23064

    Mohamed any ideas with that version?

    Imported from legacy forums. Posted by jason (had 1610 views)

    User (Old forums)
    Member
    Post count: 23064

    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!)

    http://doc.xceedsoft.com/products/XceedFileSystem/Xceed.FileSystem~Xceed.FileSystem.MemoryFolder~_ctor(String).html

    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)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.