Lazarus

Miscellaneous => Other => Topic started by: rabbit on January 05, 2010, 06:49:24 am

Title: stream read error
Post by: rabbit on January 05, 2010, 06:49:24 am
  I havesome compressed data files,and I want to decompress them.Both compressed file and decompressed file are in this form: headerblock+datablock.My code(in the attached file) was compiled succsessfully.when I run my program,some compressed file was decompressed and I got some decompressed file, but after decompressing several files(sometimes no more than 20 files,sometimes no more than 10 files) I got this message: 'stream read error'.
  My data file is too big to be attached(compressed file is in a size of about 1M bytes and decompressed file is in a size of about 4M bytes).so I hope if some one kindly can help me test the code,tell me the email address,I will send him my data file.
Title: Re: stream read error
Post by: Marc on January 05, 2010, 10:36:32 am
You don't need the whole program to test this case. Just write a little testcase showing the problem. Thas also easier for us to understand.

Stream read errors often happen when you read more from the stream than data available, so I guess there is somthing wrong with your encoding or decoding logic.
TinyPortal © 2005-2018