login about faq

I have been using Compression.Compress file successfully for quite some time, however, today I went to upload a larger file than usual and it locks up.. the output file gets stuck at 1.1GB

    Private WithEvents _zipper As New Compression

_zipper.HeartbeatMs = 500 _zipper.Algorithm = "lzw" _zipper.CompressFile(localPath, finalPath)

asked Jun 29 at 13:14

Maury's gravatar image

Maury
1

Also, I am on framework 3.5

(Jun 29 at 13:18) Maury

tried with both x86 and x64

(Jun 30 at 08:57) Maury

Thanks Maury,

I'll have a look. If you are using event callbacks, does the problem still occur without event callbacks? In other words, is it possible that an event callback, which is a callback into your applicatino code, is where it hangs? I know this is unlikely and I don't expect it to be the case, but I always ask w.r.t. hanging questions, especially if I see code relating to event callbacks (for example, where you set the HeartbeatMs = 500).

link

answered Jun 30 at 17:41

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thanks for getting back to me.

While I was using WithEvents, I was not actually subscribed to any of the events... I went ahead and removed it and also the heartbeat property, however I am still having the issue.

(Jul 01 at 10:20) Maury

Now, what is strange is that it seems to only happen on some files. For example: File 1: 2.42Gb works fine.(Havn't tested if uncompress matches original) File 2: 2.38Gb does not work, locks up. File 3: 3.5Gb works fine. (Havn't tested if uncompress matches original)

All are binary files with the same kind data. I am on the latest Chilkat version. I will send you an email containing a zip file with the data for you to try

(Jul 01 at 10:20) Maury

Thanks Maury. The lzw implementation is quite old, and hasn't changed for many years. Upon inspection, it appears the "lanes need to be widened" for 64-bit sizes (i.e. for file sizes where a 32-bit integer may go negative...) I'm working on that now.

(Jul 01 at 13:04) chilkat ♦♦
link

answered Jul 01 at 15:14

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Do you have it available for .NET 3.5?

(Jul 01 at 15:20) Maury
link

answered Jul 01 at 15:42

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33
×11
×10

Asked: Jun 29 at 13:14

Seen: 345 times

Last updated: Jul 01 at 15:42

powered by OSQA