> ## 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.

# DeinitializeEngine 関数

この関数は ABBYY FlexiCapture 12 SDK の終了処理を実行します。FlexiCapture SDK をアンロードし、リソースを解放します。この関数は、ABBYY FlexiCapture SDK のオブジェクトをすべて解放した後に呼び出してください。

## 構文

```vb Visual Basic .NET theme={null}
Private Declare Function DeinitializeEngine Lib "FCEngine.dll" () As Integer
```

```cpp C++ theme={null}
HRESULT __stdcall DeinitializeEngine();
```

## 戻り値

この関数は、[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返すことがあります。

## 解説

ABBYY FlexiCapture SDK の終了処理を実行する時点で未解放のオブジェクトが残っていても、終了処理は正常に完了し、未解放のオブジェクトはすべて無効になります。このようなオブジェクトに対して実行できる操作は、解放のみです。終了処理の前に [**IEngine::StartLogging**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-startlogging.md) メソッドを呼び出しておくと、未解放のオブジェクトの一覧を取得できます。

## サンプル

この関数は、すべての[コード サンプル](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md)で使用されています。

## 関連項目

[チュートリアル：最終ステップ (FlexiCapture SDK のアンロード) ](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-unloading.md)

[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md)

[**GetEngineLoader**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/getengineloader.md)
