Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for Active | Custom Development Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
AuthorForum: PowerTCP Zip Compression for ActiveX
Topic: Error 12026 ?
PaulKay
pkay@wow-software.com

From: Eden Prairie, MN USA
Posts: 4
Member Since: 03/16/04
posted October 13, 2004 11:15 AM

My customers are getting an Error 12026 when trying to unzip a file that was downloaded with the ftp control.
The code is:
Ftp1.Retrieve "NewWOWData.zip"
Beep
txt_Progress.Text = "Unzipping new WOW data - please be patient ..."
ZipLite1.QuickUnzip "C:\WOW\NewWOWData.zip", App.Path, False, , True

The error does not occur in development. I don't know what the error is really telling me either. It appears that the files are being unzipped. Any ideas ?

Paul
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 13, 2004 12:45 PM

What's the text of the error message?
What is Ftp1.Type set to?
PaulKay
pkay@wow-software.com

From: Eden Prairie, MN USA
Posts: 4
Member Since: 03/16/04
posted October 13, 2004 3:24 PM

The error is caught by the OnError event. The error # is 12026. Here is more of the complete code:
Ftp1.Passive = True
Ftp1.Type = ftpImage
Ftp1.TimeOut = 60000
Ftp1.Type = ftpAscii

The error is being caused by the QuickUnzip but perhaps it is because of something in the file itself ? Looking at the documentation for error 12026 doesn't help much.

Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 13, 2004 3:33 PM


You are only looking at Err.Number.
What is the value of Err.Decription?

Also, why are you setting the type to Ascii for a binary file?
PaulKay
pkay@wow-software.com

From: Eden Prairie, MN USA
Posts: 4
Member Since: 03/16/04
posted October 13, 2004 4:05 PM

The description is Write failed
As to Ftp1.Type = ftpAscii
...
I didn't know what else to set it as - what should it be - knowing that it is a zip file ?

Paul
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 13, 2004 4:31 PM

It should be ftpImage for a binary file. For some reason you set it to ftpImage, then back to ftpAscii. Try setting it to ftpImage and see what happens.

Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX