Op Sat, 1 Dec 2007, schreef Vincent Snijders:

> Daniël Mantione schreef:
> > 
> > If committed a proper fix, as bonus you can now randomly seek through the
> > compressed file, there are no limitations anymore.
> > 
> 
> Unfortunately, it still crashes Lazarus:
> [FORMS.PP] ExceptionOccurred
> Sender=Ecompressionerror

> Exception=buffer error

A buffer error occurs when the output buffer is full or the input buffer 
is empty. As the output buffer is set on each read operation it has to be 
the input buffer.

Put a:

writeln(Fstream.avail_in);

... at the end of the reset procedure. If it happens to be non-zero, we 
have found the problem.

Daniël
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to