PlausiblyDamp
Administrator
Is the ZipFile part of the VB Resource Kit? If so I can download it and have a look tomorrow.
PlausiblyDamp said:Is the ZipFile part of the VB Resource Kit? If so I can download it and have a look tomorrow.
Public Shared Sub ExtractAll(ByVal lstFiles As ListView, ByVal ExtractPath As String)
Dim lvi As ListViewItem
Dim ze As C1.C1Zip.C1ZipEntry
For Each lvi In lstFiles.Items
ze = lvi.Tag
Zip.Entries.Extract(lvi.Index, ExtractPath)
Declarations.Zip.Entries.Extract(lvi.Index, txtPath.Text)
Next
End Sub
PlausiblyDamp said:Didnt get time to have a proper look unfortunately, however I noticed that in the routine
you are extracting just to a path and IIRC you need to specify a full path and filename to extract to. Also check you are using the correct listviewitem to generate the file name.Code:Public Shared Sub ExtractAll(ByVal lstFiles As ListView, ByVal ExtractPath As String) Dim lvi As ListViewItem Dim ze As C1.C1Zip.C1ZipEntry For Each lvi In lstFiles.Items ze = lvi.Tag Zip.Entries.Extract(lvi.Index, ExtractPath) Declarations.Zip.Entries.Extract(lvi.Index, txtPath.Text) Next End Sub
Also you are using an awful lot of legacy VB6 syntax - you may want to consider converting to the newer .Net syntax.
PlausiblyDamp said:Does this exception get thrown everytime you close the form? If so does a particular line generate the error?
Is there any information to indicate which component raised this exception?
Imports C1.C1Zip
Public Class frmMain This is where the error is (a green arrow in the where breakpoints are and green highlight)
Inherits System.Windows.Forms.Form
Form design code
Dim Files() As ZipInfo.Info
PlausiblyDamp said:Do any of these applications have anything in common (same 3rd party components etc - are you using the Zip component in any of the others for example)?