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

    while trying to zip 190 gig of files i got this error.

    application has generated an exception that cannot be handled
    process id = 0xa30 (2608), Thread id = 0x858 (2136)

    what does this mean?

    here is my code for zipping:
    public void Build()
    {
    try
    {
    DiskFile File;
    ZippedFolder DestFolder;
    DiskFile ZipFile = new DiskFile(zipFileName);

    if( ZipFile.Exists )
    {
    ZipFile.Delete();
    }

    ZipFile.Create();

    OpenZipFile(zipFileName);

    m_zipRoot.BeginUpdate( m_zipEvents, null );
    m_zipRoot.DefaultCompressionLevel = CompressionLevel.Lowest;
    m_zipRoot.DefaultCompressionMethod = CompressionMethod.Deflated;
    m_zipRoot.AllowSpanning = true;

    string connStr = “Provider=Microsoft.Jet.OLEDB.4.0; Data Source=” + zipDBname;
    zipConnection = new OleDbConnection(connStr);
    zipConnection.Open();
    zipCommand = zipConnection.CreateCommand();
    zipCommand.CommandText = “SELECT * FROM FileInfo where ScanDuration <> -1 order by ScanDuration ” + sortOrder;
    zipReader = zipCommand.ExecuteReader();

    while(zipReader.Read())
    {
    try
    {
    zipCounter.IncrementCounter();
    File = new DiskFile(zipReader[“SourceFile”].ToString());

    string RootName = System.IO.Path.GetPathRoot(zipReader[“SourceFile”].ToString());
    string PathName = System.IO.Path.GetDirectoryName(zipReader[“SourceFile”].ToString());

    PathName = PathName.Substring(RootName.Length, PathName.Length – RootName.Length);

    // If PathName and RootName are the same, then it is safe
    // to assume that the destination is the root of the zip file,
    // therefore, we will put “\” rather than string.empty to avoid
    // errors.
    if( PathName == string.Empty )
    {
    PathName = “\\”;
    }

    DestFolder = ( ZippedFolder ) m_zipRoot.GetFolder(PathName);
    File.CopyTo(m_zipEvents, null, DestFolder, false);
    }
    catch(Exception)
    {
    Utils.LogMessage(“Zip Error: ” + zipReader[“SourceFile”].ToString());
    }
    }
    }
    catch(Exception ex)
    {
    Utils.LogMessage(“Error: ZipBuilder.Build() Zip File Generation Failed:”);
    Utils.LogMessage(“Details:” + ex.ToString());
    }
    finally
    {
    if(zipReader!=null)
    zipReader.Close();
    if(zipCommand!=null)
    zipCommand.Dispose();
    if(zipConnection!=null)
    {
    zipConnection.Close();
    zipConnection.Dispose();
    }
    // For every call to BeginUpdate, there must be a call to EndUpdate.
    m_zipRoot.EndUpdate( m_zipEvents, null );
    }
    }

    Imported from legacy forums. Posted by schizo (had 2355 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Xceed Zip for .NET does not support the Zip64 file format which allows for support up to 264 -1files within a zip archive as well as files that have a size greater than 4GB for a zip file size.

    For more information, please refer to the article <a href=”http://www.xceedsoft.com/kb/result.asp?id=191″>191</a&gt; in the <a href=”http://www.xceedsoft.com/Kb/”>knowledgebase</a&gt;.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3177 views)

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