Multi-Threading

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques >

Multi-Threading

Previous pageReturn to chapter overviewNext page

By default, VPE is not thread-safe. For the Professional Edition and higher you can activate the thread-safe code of VPE by setting the property EnableMultiThreading = True.

Please note that on the platforms Solaris, OpenSolaris, Aix and AS/400 a separate server license for each server is required, in order to execute VPE on a server - be it in thread-safe mode or not.

Once the thread-safe code has been activated, it is activated for all VPE documents that are currently open - and that will be opened later - by the calling application instance. Furthermore the thread-safe code can not be deactivated by the application instance.

The trial versions of VPE - as well as the PDF Export Module - allow to activate the thread-safe code for testing purposes.

 

NOTE: VPE documents must be created and used separately per thread, i.e. each thread must create a VPE document itself by calling OpenDoc(), and one thread must not use the document object of another thread for calls to the VPE API.