After opening bplsparkle.so in Linux and compiling the debug version, I followed the error messages and found that the fail occure in the call on Sparkle.Middleware.Compress.pas:line 278 where lines call directly deflate(FZstream, zfinish) in the ines:
while ZCompressCheckWithoutBufferError(deflate(FZStream, Z_FINISH)) <> Z_STREAM_END do
begin
FStream.WriteBuffer(FBuffer, Length(FBuffer) - Integer(FZStream.avail_out));
FZStream.next_out := @FBuffer[0];
FZStream.avail_out := Length(FBuffer);
And on line 291 there is a direct call to deflateend(FZstream);
When expanding the system.zilib.pas and press F1 on the commands, help for for system.Zlib.deflate tate explicitly the the unction call if for internal use only and
System.ZLib.deflate .appmethod { display:none; }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.ZLib.pas |
System.ZLib.hpp|System.ZLib|System.ZLib|
Description
For internal use only.
Do not use this function. It is for internal use only. For more information, see the original documentation provided by ZLib library.
Category:
Samme applies for the other function call. to zlib where diret call should have been overwritten by some methods calling it correctly.