sgcWebSockets uses ZLib for WebSocket Compression/Decompression. Recently Zlib has released a new version with fixes the following issues:
sgcWebSockets Enterprise Edition includes a custom Indy version which makes use of ZLib to statically link the .obj files, those files have been updated to the latest ZLib version, so you only need to download the latest sgcWebSockets version to apply this fix.
This is the option by default, so for 99% of users, just updating the sgcWebSockets version will be enough (sgcWebSockest 2022.4+).
From sgcWebSockets 2022.4.0, instead of statically link the .obj files in your binary, you can load the zlib library dynamically.
To do this, add the following Conditional Define to your project:
SGC_DYNAMICLOAD_ZLIB
As an alternative, you can edit the file sgcIndy.inc (located in the source folder) and add the following line
{$DEFINE SGC_DYNAMICLOAD_ZLIB}
Finally, you must set the location where is the ZLib library, to do this, use the following method and pass the Full Path (without the name of the library) where is located
sgcIdZLibHeaders.IdZLibSetLibPath('c:\software\zlib');
*This configuration is only valid for sgcWebSockets Enterprise Edition with Source code. The compiled ZLib dll can be downloaded from the private account.
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.