> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InprocLoader Object

This object implements the [**IEngineLoader**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iengineloader.md) interface, which provides methods for loading and unloading the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object. This object allows you to load ABBYY FlexiCapture SDK as an in-process server into the current 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 objects are completely thread-safe. They can be created and used in different threads. When working with objects from the Main STA apartment, the performance of the application remains the same as when working with naked interfaces. Accessing those objects from different threads may impair your application performance due to marshalling. However, the performance hit is negligible in most scenarios.

> [!WARNING]
>
> This loading method requires registration of FCEngine.dll when installing the application on an end user's computer. To register FCEngine.dll, use the following command line:

```bat theme={null}
regsvr32 /s /n /i:"<path to the Inc folder>" "<path to FCEngine.dll>"
```

For more information, see [Different Ways to Load the Engine Object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/differentwaystoloadengine.md).

## Samples

> [accordion] C# code
>
> ```csharp theme={null}
> IEngineLoader engineLoader = new FCEngine.InprocLoader();
> IEngine engine = engineLoader.Load(…);
> try {
>  …
> } finally {
>  engineLoader.Unload();
> }
> ```

## See also

[**IEngineLoader**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iengineloader.md)

[Different Ways to Load the Engine Object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/differentwaystoloadengine.md)
