Chilkat Software Chilkat Software Chilkat Software
Chilkat Software Chilkat Software







Good-to-Know Information
Before Programming with Chilkat

This page provides some basic information that should be known before you begin programming with Chilkat's components.

C++ Memory Leaks?

Making sure there are NO memory leaks is extremely important to Chilkat.

Please read this blog post regarding memory leaks.

Many programmers mistakenly think memory leaks exist when it is actually not the case.

Success/Failure Return Values

.NET and Visual C++ methods that return status information will return true for success, and false for failure.

ActiveX methods that return status information will return 1 for success, and 0 for failure.

If an method returns a reference to an object, a failure is indicated by returning a NULL reference.

Retrieving Error Information

When a method fails, extended error information can be retrieved as XML, HTML, or plain-text. The LastErrorHtml, LastErrorText, and LastErrorXml properties contain this information. These properties should be examined when a failure status is returned. The last error information can also be saved to an XML formatted file by calling SaveLastError. Note: the LastErrorHtml, LastErrorText, and LastErrorXml properties will contain information even in the case of success.

30-Day Trial

Chilkat's non-free components are unlocked at runtime by calling the UnlockComponent method once at the beginning of a program. The full-versions of all Chilkat components and libraries are publicly available at http:/

Fully-functional Chilkat components can be tested for 30-days by passing an arbitrary string to UnlockComponent. This causes the component to automatically begin a 30-day trial.


Chilkat component and library methods never raise exceptions. If a method fails, it returns a status (true/false or 1/0) and the last-error information is available in LastErrorText, LastErrorXml, LastErrorHtml, or via SaveLastError. A returned NULL object reference also indicates failure.

Privacy Statement. Copyright 2000-2017 Chilkat Software, Inc. All rights reserved.

(Regarding the usage of the Android logo) Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Send feedback to

Software components and libraries for Linux, MAC OS X, iOS, Android™, Solaris, RHEL/CentOS, FreeBSD, MinGW
Azure, Windows 10, Windows 8, Windows Server 2012, Windows 7, Vista, XP, 2003 Server, 2008 Server, etc.