OutprocLoader Object
This object implements the IEngineLoader which provides methods for loading and unloading the Engine object. This object allows you to load ABBYY FlexiCapture SDK as an out-of-process server into a separate process.
Please note that you must keep the reference to the loader object until you finish working with the Engine. You can then call the Unload method of the loader object to deinitialize the Engine, and then destroy the loader object.
If this loading method is used, all ABBYY FlexiCapture SDK are completely thread-safe. Each ABBYY FlexiCapture SDK instance runs in a separate process simultaneously with other instances. This allows you to create a pool of processors and make full use of the available CPU power. For this reason, using the OutprocLoader object is particularly suitable for server applications.
Important!
- This loading method requires registration of FCEngine.dll when installing the application on an end user's computer. To register FCEngine.dll when installing your application on an end-user computer, use the following command line:
regsvr32 /s /n /i:"<path to the Inc folder>" "<path to FCEngine.dll>"
-
Account permissions can be set up using the DCOM Config utility (either type DCOMCNFG in the command line, or select Control Panel > Administrative Tools > Component Services). In the console tree, locate the Component Services > Computers > My Computer > DCOM Config folder, right-click ABBYY FlexiCapture 12 SDK Loader (Local Server), and click Properties. A dialog box will open. Click the Security tab. Under Launch Permissions, click Customize, and then click Edit to specify the accounts that can launch the application.
Note that on a 64-bit operating system the registered DCOM-application is available in the 32-bit MMC console, which can be run using the following command line:
"mmc comexp.msc /32"
-
We recommend that you use a Network license both for debugging your server application and for running it.
For more information, see Different Ways to Load the Engine Object.
This object supports the IWorkProcessControl interface. This means that the work process can control whether its parent process is alive and terminate if it is not.
Samples
C# code
See also
Different Ways to Load the Engine Object
Using ABBYY FlexiCapture SDK in Multi-Threaded Server Applications
8/15/2023 1:19:30 PM