Hi there,
I am using C1.C1Zip.dll Build Number 1.1.20043.30 Build Date: April 19, 2004. on .Net 2003 C# projeect and during the compression it throws exception. It seems it's over the size limitation.
Here is my code:
==============================
//Compress Raw Data
System.IO.MemoryStream compressedMS = new System.IO.MemoryStream();
C1.C1Zip.C1ZStreamWriter compressedZIPSW =
new C1.C1Zip.C1ZStreamWriter(compressedMS);System.IO.BinaryWriter compressedBW = new System.IO.BinaryWriter(compressedZIPSW);
//Write # of elementscompressedBW.Write (this.Logger[i].rawDataSet.Count);
//Write elements themselvesfor (int x=0;x<this.Logger[i].rawDataSet.Count; x++,offset++)
{
compressedBW.Write((ushort)this.Logger[i].rawDataSet[x]);
}
=======================================
when x is about 17000000, it throws exception. I have verified my data array this.Logger[i].rawDataSet is valid by successfully writing them to a file.
This only happens if the data value in rawDataSet array varies a lot. if they do not change a lot I can pass that point.
Any idea?
Thanks!
Stephen