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: Add method throws exception on large folders
User142

Posts: 18
Member Since: 07/18/01
posted February 27, 2002 1:20 AM

This simple code throws an exception 0x800a34bd.

#include "stdafx.h"
#include "izip.h"

#define ZIPTOOL_LICENSE ""

int APIENTRY WinMain(HINSTANCE hInstance,
           HINSTANCE hPrevInstance,
           LPSTR   lpCmdLine,
           int    nCmdShow)
{
CoInitialize(NULL);

// Create Zip
IZip Zip;
Zip.Create(ZIPTOOL_LICENSE);

// Add to Zip
_bstr_t filename2 = "c:\\dev\\comms";
Zip->FileStore->Add(filename2,VARIANT_TRUE,VARIANT_FALSE,_bstr_t(""),DartZip::zipNoEncryption);

// ...

return 0;
}

the folder "C:\dev\comms" has 786 files, 46 folders and 209,643,746 bytes.

Can you provide more information such as if it is due to locked files, access rights ...

The OnError event only reports one "zipWarning" with description "A Warning has occurred"
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted February 27, 2002 10:11 AM


Hi Marc,
Does this error occur when you use the FileSearch sample to zip the folder?
If there are warnings, what does the warnings file show?
Thanks,
-ken

K M Drake
Dart Tech Support
User142

Posts: 18
Member Since: 07/18/01
posted February 27, 2002 10:25 PM

No, I have found that it is caused by a file in a subfolder that was locked and in use by another process.
Neither the error event "A Warning has occured" or the exception code are very helpful.
Is there a documented list of error codes ?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted February 28, 2002 12:00 PM


Hi,
In the help file is a ZipErrorConstants page.
Also, see the File.WarningText Page for possible warnings.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX