Delphi DLL – GetBytesPtr (Writing PByte to TStream)

Chilkat v9.5.0.80 adds a new BinData function named GetBytesPtr.   It returns a pointer to the internal bytes contained within the BinData.   This post shows one way of writing those bytes to a Delphi TStream (using the Chilkat non-ActiveX Delphi DLL). procedure TForm1.Button2Click(Sender: TObject); var rawBytes: PByte; ItemCount: Integer; binDat: HCkBinData; …

HTTP “broken pipe” Error on non-Windows Systems (Linux, iOS, MacOSX, etc.)

If you see the error lines “The connection already exists, as far as we know..” followed by “socketError: Broken pipe”  in any LastErrorText for a method that sends an HTTP request, it means the following:   The server replied to the previous request without a “Connection: close” header, thus allowing the …

Explaining OAuth2.StartAuth

This post explains the OAuth2 flow for desktop apps.   It begins by calling OAuth2.StartAuth. The oauth2.StartAuth method does two things: 1) Returns a URL that should be displayed in a browser. 2) Starts a background thread to receive the redirect callback from the browser. The flow of control is like …

iPad Simulator: Undefined symbols for architecture x86_64: _readdir$INODE64

Question: We are currently seeing the following error when we run the build on iPad Simulator Undefined symbols for architecture x86_64: “_readdir$INODE64”, referenced from: _ckFileList2::addDirNonRecursive2(int, FileMatchingSpec&, ExtPtrArrayXs&, ProgressMonitor*, LogBase&) in libchilkatIos.a(fileList.o) _ckFindFile::advancePositionLinux(char const*, LogBase&) in libchilkatIos.a(fileList.o) “_opendir$INODE64”, referenced from: _ckFindFile::ffOpenDir2(XString&, LogBase&) in libchilkatIos.a(fileList.o) _ckFileList2::addDirNonRecursive2(int, FileMatchingSpec&, ExtPtrArrayXs&, ProgressMonitor*, LogBase&) in libchilkatIos.a(fileList.o) …

Chilkat v9.5.0.80 Pre-Release Notes

The previous version release notes: Chilkat v9.5.0.79 Release Notes Chilkat v9.5.0.80 Release Notes 9-Aug-2019 Apple WatchOS: Added the static library for the arm64_32 architecture.  Pre-release download is at: https://chilkatdownload.com/prerelease/chilkat-9.5.0-watchos-1494.zip 9-Aug-2019 iOS: Added an “iPad Apps for Mac” build.   This is a new set of Chilkat iOS libs built with …

Android Java .so Shared Lib sizes, and Android C++ Linker Options to Minimize Size

The Chilkat v9.5.0.79 version reduces the size of the Android Java .so shared libs by approximately 24%. For example, the armv7l lib is reduced from 9.86MB to 7.56MB. For developers writing C++ code in Android (i.e. using the Android C++ libs downloaded from https://www.chilkatsoft.com/chilkatAndroidCpp.asp), you’ll want to include the following …

Electron: Uncaught Error: A dynamic link library (DLL) initialization routine failed.

Customer problem: Hi having trouble getting @chilkat/ck-electron4-win64 working. Im getting this error: Uncaught Error: A dynamic link library (DLL) initialization routine failed.\\?\C:\Users\User\Documents\xyz\node_modules\@chilkat\ck-electron4-win64\chilkat.node Resolution: I’m unable to reproduce the problem. Here are the steps taken to install Electron 4.0.4 and use Chilkat from scratch… using the Electron quick start as shown here:  …

XML Signature / Canonicalization Bug in Widely Used Software

Chilkat has found what it believes to be a bug in the internal XML canonicalization functionality in some other software systems. Chilkat’s XML canonicalization is correct, whereas some other established implementations are incorrect. Chilkat is adding a Behavior in v9.5.0.79 to allow for the bug to be reproduced so that …