Android Socket Permission Denied Error

If the LastErrorText contains a line such as this: socketError: Permission denied It means you need to add permissions for Internet communications in your manifest. It should be placed outside of the application tag, such as: <manifest> <application> . . . </application> <uses-permission android:name=”android.permission.INTERNET” /> </manifest>

Chilkat v9.3.1 Release Notes

Chilkat v9.3.1 is in the process of being released this week. The release notes (below) detail the changes, fixes, new features, etc. regarding the new version. All Added a free supporting CkDateTime object for date/time functionality. The use of SYSTEMTIME will become deprecated in favor of methods that instead return a CkDateTime object. More information about this will be added […]

Auto-release Pools and Background Threads

Regarding Objective-C programming for MAC OS X and IOS: (from https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAutoreleasePools.html ) Cocoa always expects there to be an autorelease pool available. If a pool is not available, autoreleased objects do not get released and your application leaks memory. If you send an autorelease message when a pool is not available, Cocoa logs a suitable error message. The AppKit and […]

Linking “C” Programs with the Chilkat C/C++ Libs

The Chilkat C/C++ libs are (internally) written in C++.  Therefore, when linking a “C” program with the Chilkat libs, the C++ runtime libs must be included.  This is true regardless of the operating system, whether it be Windows, MAC OS X, IOS, Linux, etc.    Different build environments will have different ways of accomplishing the task.  For example, with XCode (on […]

Chilkat Customer App in Apple App Store

Question: Will using Chilkat (for IOS) prevent my app from being accepted into the Apple App Store? Answer: Using the Chilkat libs for IOS does not prevent it from being accepted in the Apple App Store.  For reference, the following app uses Chilkat and was accepted into the app store on 14-March-2012. http://www.bouncemyx.com/

SFTP vs. FTPS

Clarification on the acronyms “SFTP” and “FTPS” “SFTP” is the Secure File Transfer Protocol over SSH.  It is a protocol unrelated to the FTP protocol. (It is actually a subsystem of SSH.)  The Chilkat SSH / SFTP component is used for “SFTP”.  SFTP is achieved by connecting to an SSH server at port 22. On the other hand, the Chilkat […]

Unzipping zips with Unicode Filenames

Question: I see your example code includes the ability to create a zip with Unicode filenames. Does your product support unzipping files with unicode filenames, such as Chinese? Answer: Yes, it can unzip files w/ Unicode names — assuming the .zip was correctly created.  Your first test should be to unzip without trying anything differently.  Check to see if the […]

Debugging SshTunnel

The Chilkat SshTunnel object/class (may be “CkSshTunnel” in some programming languages) provides a number of properties to help in debugging (i.e. understanding) what is happening in the background thread: AcceptThreadSessionLogPath:  May be set to the path of a log file that the SshTunnel will create and log activity regarding connections accepted.   This will allow you to see incoming connections that […]

Delphi: how to call ActiveX Functions that return an OleVariant containing a Byte Array

Some Chilkat ActiveX functions return binary data as a Variant containing a byte array.  If the Chilkat function fails, it returns an OleVariant containing an empty byte array. The following code snippet is incorrect and will cause Delphi to raise an EVariantBadIndexError exception if an empty OleVariant is returned. // This is incorrect: mybuffer : array of byte; // … […]