User (Old forums)MemberOctober 1, 2008 at 7:59 pmPost count: 23064
In our software, I have the following code:
Xceed.Zip.ZippedFile testFile = new ZippedFile(new DiskFile(myDirectory + “Backup\\testdiff”), “testdiff.txt”);
ZipArchive archive = (ZipArchive)testFile.RootFolder;
archive.DefaultEncryptionPassword = EncryptionKey;
archive.DefaultCompressionMethod = Xceed.Compression.CompressionMethod.Deflated64;
archive.DefaultCompressionLevel = Xceed.Compression.CompressionLevel.Highest;
Stream tempStream = null;
if (File.Exists(myDirectory + “Backup\\testdiff”))
// open the file for writing
tempStream = testFile.OpenWrite(true,
tempStream = testFile.CreateWrite(FileShare.None);
XmlTextWriter myWriter = new XmlTextWriter(tempStream, System.Text.Encoding.ASCII);
This code works fine about 99% of the time. However, 1% of the time, it gives this exception:
I don’t really see how it can be out of memory as my program allocates memory before and after this and everything runs fine.The file in question isn’t even that big.. unzipped it is a few kilobytes at the most.
Any help would be appreciated.
Imported from legacy forums. Posted by Ahmed (had 1658 views)Xceed SupportMemberOctober 2, 2008 at 9:23 amPost count: 5658
you can try to flush the content of the DefaultTempFolder after each operation. Moreover, could you send us an application that reproduces this issue, at email@example.com? This will greatly help us identifying and resolving it.
Imported from legacy forums. Posted by Mohamed [Xceed] (had 1670 views)
- You must be logged in to reply to this topic.