Q/A 11-Nov-2019 (Thread Safety)

Question: We have a desktop application(client) that can communicate to many devices(servers) at the same time. A different thread pool is used for each device communication, so they do not block each other or the main thread. Because of the issue earlier, I am using the same http object for all communications. Most of the requests are very quick (~ […]

Visual Foxpro IDE crashes when using asynchronous socket methods

Question: When using asynchronous socket methods, VFP crashes. Try running the code from the example under VFP https://www.example-code.com/foxpro/socket_async.asp What else do I need to configure? Answer: The older IDE’s such as VB6 and FoxPro don’t take kindly to background threads.  The solution is to clean up the threads at the end of your program by doing this: loGlobal = CreateObject(‘Chilkat_9_5_0.Global’) […]

Node.js Asynchronous Methods that Return Objects

This post shows the general technique to get the object returned by a method when it is called asynchronously.   For example, consider the Mailman.GetUidls() method.  A synchronous call to GetUidls returns a StringArray object, as shown here: However, the async version of the method, GetUidlsAsync, returns a Task object. The TaskCompleted callback is called when finished. The following code […]

Asynchronous Chilkat Methods in Node.js

Chilkat implements a thread pool for asynchronous tasks in all programming languages except for Node.js. For Node.js, Chilkat tasks run directly on Node’s internal thread pool (i.e. the libuv thread pool). The Task.Run() method can have 0 or 1 arguments. If an argument is passed, it is the “task completed” callback that get called when the task has completed. Here […]

Event Callbacks in Java

Event callbacks in Java (including Android) are supported starting in v9.5.0.52. To receive event callbacks, first create a Java class derived from one of the Chilkat event callback classes. The event callback classes are: CkBaseProgress, CkHttpProgress, CkZipProgress, CkFtp2Progress, CkMailManProgress, CkTarProgress, and CkSFtpProgress. All future Chilkat classes will only use CkBaseProgress. Theses event callback classes will be documented in the “Events” […]

Chilkat v9.5.0.52 – Asynchronous for all Classes in all Programming Languages

Starting in Chilkat v9.5.0.52, asynchronous capability is added across all classes and all programming languages. The new Task and TaskChain classes have been added. To Beta test, send email to support@chilkatsoft.com. Please specify the programming language, operating system, etc. that is needed. The online reference documentation has been updated. Examples will be forthcoming. Version 9.5.0.52 will be released later this […]