|
Post by El Lobo on Oct 26, 2004 4:46:58 GMT -5
When I try to make an archive I get a Stream Write Error after a bit. I have two disks, a 60GB disk with about 6GB free, the C: drive. And a 40GB backup drive (through USB 2) which is empty and where I am creating the archive. My backup is about 30GB in size. What can the cause of this problem be?
|
|
|
Post by Kevin on Oct 26, 2004 7:00:41 GMT -5
I'm not sure. Does this happen every time? Does it happen at the same point each time? What if you write it to the other disk?
What version of Delphi/BCB are you using?
VCLZip uses normal stream/file writing classes, so I'm not sure what could be causing it.
Kevin
|
|
|
Post by El Lobo on Oct 26, 2004 16:02:53 GMT -5
Hello and thank you for a quick response. Yes I get this error always if the file is huge (>6 GB). Using Delphi 7.
I have a question. Does VCLZip always zip into the temporary directory first? Can ir compress TEXT into the destination directory? Could it be that the temporary directory doesn't have enough space (only 2 Gb there).
|
|
|
Post by El Lobo on Oct 26, 2004 16:05:10 GMT -5
Sorry, I wante to say, can it compress directly into the destination directory? If it compress into the temporary folder first and then copies it to the destination, this can be very inefective when compressing huge files.
|
|
|
Post by Kevin on Oct 26, 2004 16:22:00 GMT -5
If it is a new archive (not updating an existing archive) then there is no temporary file created for a normal zip file. However, if you are updating an existing archive, then a temporary file must be created.
However, this temporary file can go whereever you want it to go by setting the TempPath property.
And yes, if you are updating an existing archive, and the temporary directory does not have enough disk space, you could get an error like this.
Kevin
|
|
|
Post by Kevin on Oct 28, 2004 9:42:58 GMT -5
In addition, if the temp directory and the archive are on the same disk, then a rename instead of a copy is done when moving the temp to the real archive.
Kevin
|
|
|
Post by El Lobo on Oct 28, 2004 17:13:41 GMT -5
Thank you for your information. I was asking because when using zaReplace (not "updating", but replacing), if the archive exists, it will create the temporary archive too. I guess Replacing is considerated an update too. I have solved the issue by just deleting the archive before compressing.
Thanks
|
|
|
Post by Kevin on Oct 28, 2004 22:02:53 GMT -5
Correct, zaReplace does not mean replace the archive, it means replace the compressed file in the existing archive.
You are now doing the right thing if you want to replace the archive by deleting it first.
Kevin
|
|