Firstly let me thank you for the new Chilkat Delphi DLL. This resolves so many ActiveX problems and is greatly appreciated.
However I am having a problem with the CkCrypt2__inflateStringENC function, when inflating compressed text that should result in an empty string.
The wrapper function I am using is this...
Note: I am using Delphi 2007, so I am explicitly using WideString types, rather than just String types as they would be in Delphi XE2.
The Charset is set to 'ANSI', the EncodingMode is set to 'base64', and the CompressionAlgorithm is set to 'bzip2'.
This function has been tested and exercised extensively, and seems to work completely reliably, except in one specific case - when the expected result is an empty string.
Here is the lastErrorText from the function call...
In this case, the aCompressedText is '4aeUswAAAAA=', and the result of the CkCrypt2__inflateStringENC function call is usually (but not always) pointing to garbage data. (Sometimes the result is an empty string, but this is not reliable.)
We have had to work around the problem like this...
This work around has been reasonably well tested, and we have not yet seen it fail. But it is specific to our situation, and is not a full or general purpose solution to the problem.
All the diagnosis we have been able to perform has come to the conclusion that the problem is occurring in the DLL CkCrypt2__inflateStringENC function.
Could you please either verify our findings, or point out where we may have gone wrong.
asked Feb 03 '13 at 23:38
Please try this new build:
answered Feb 05 '13 at 09:51
I found and fixed the problem. I'll post a download to a new build as soon as possible.
answered Feb 04 '13 at 12:01