1000
The Compress (or Uncompress) methods were called one or more times with the bEndOfData parameter set to False, but were not called with the bEndOfData parameter set to True before a call to the Uncompress (or Compress) method was placed.
You must terminate a Compress or Uncompress session with the bEndOfData parameter set to True.