ZLib 1.2.12 Delphi - CBuilder

· Fonctionnalités

sgcWebSockets uses ZLib for WebSocket Compression/Decompression. Recently Zlib a released a nouvelle version avec fixes le suivant issues:

ZLib Statically Linked 

sgcWebSockets Enterprise Edition inclut a custom Indy version qui rend use de ZLib  to statically link le .obj files, ces files ont été updated vers le latest ZLib version, donc tu seulement doit download le dernier sgcWebSockets version to apply ce fix.

Ceci est le option par défaut, donc for 99% de utilisateurs, just updating le sgcWebSockets version sera enough (sgcWebSockest 2022.4+).

ZLib Dynamic Library 

From sgcWebSockets 2022.4.0, au lieu de statically link le .obj files in ton binary, tu peux load le zlib library dynamically.

Pour cela, add le suivant Conditional Define to ton projet:

SGC_DYNAMICLOAD_ZLIB

As an alternative, tu peux edit le fichier sgcIndy.inc (located dans le source folder) et add le suivant line

{$DEFINE SGC_DYNAMICLOAD_ZLIB}

Enfin, tu dois définir le location où est le ZLib library, pour cela, utiliser le suivant méthode et pass le Full Path (without le nom de la library) où est located

sgcIdZLibHeaders.IdZLibSetLibPath('c:\software\zlib');

*This configuration est seulement valid for sgcWebSockets Enterprise Edition avec Source code. Le compiled ZLib dll peut être downloaded depuis le private account.