Recent

Author Topic: stream read error  (Read 9008 times)

rabbit

  • New Member
  • *
  • Posts: 11
stream read error
« 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.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Re: stream read error
« Reply #1 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.
« Last Edit: January 05, 2010, 10:39:50 am by Marc »
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018