Author Topic: Error while compressing  (Read 5165 times)

Offline umesh

  • New
  • *
  • Posts: 2
Error while compressing
« on: March 02, 2009, 07:10:35 PM »
Hi,
I have been using PECompact for very long time and have recently came across following error:
! Error compressing data block. Design prevents skipping of codec.
! ERROR: Compression aborted.

If i reduce the size of one of data being part of executable resources, it compresses fine.


I am using PECompact V 2.77 and the executable i am trying to compress is of size: 65.2 MB (68,440,064 bytes)
In which data part is around ~57MB

Any suggestion will be highly appreciated.

Thanks
-umesh



Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5245
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Error while compressing
« Reply #1 on: March 03, 2009, 01:26:47 PM »
Are you using any non-default compression CODEC(s)? If so, which ones?

If you're using the default settings, the problem could likely be resolved by switching to pec2codec_lzma.dll, instead of pec2codec_lzma2.dll. Alternatively, using any of the other compression algorithms would probably also work.

/ch:pec2codec_lzma.dll
Software Engineer. Bitsum LLC.

Offline umesh

  • New
  • *
  • Posts: 2
Re: Error while compressing
« Reply #2 on: March 03, 2009, 02:15:08 PM »
Hi,
I can always switch but the point is why does it fail?

Same option has been working till some point but not beyond specific data size?

Thanks
-umesh

EDIT: I am using default compression.
« Last Edit: March 03, 2009, 02:20:05 PM by umesh »

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5245
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Error while compressing
« Reply #3 on: March 04, 2009, 09:16:56 AM »
I would have to look at the specific executable to say, but for some reason or another it is failing to compress a data block. If you can supply the executable in question, I can determine the exact cause when I get a chance, and issue a fix. Email it to binaries@bitsum.com, if you're able and willing.

Thanks
Software Engineer. Bitsum LLC.