Hi EvgenyK yes I have tried to disable it in client side but the error stil happens. In this moment I cannot disable compression in server side because i need to update all Android and Windows applications
Hi Evengy, the issue is not related to System.ZLib but to uROZLib.
The definition of ZInternalCompressStream and ZInternalDecompressStream is wrong.
It should be:
procedure ZInternalCompressStream(var zstream: TZStreamRec; inStream, outStream: TStream);
procedure ZInternalDecompressStream(var zstream: TZStreamRec; inStream, outStream: TStream);
That is, you need to include the var modifier before the zstream parameter. If you don’t, the copy of the record may include some trash data between the aligned fields and this leads to the failure of the inflate procedure.
Once you modify the procedure definition everything works like a charm with the iOS 64 bit compiler.