KeyView 24.3

# Run File Detection In-Process

By default, detection runs in out-of-process mode. However, you can enable in-process detection through the API or in the `formats.ini` file. If the type of process is not specified in the `formats.ini` or in the API, Filter runs in out-of-process mode. If the type of process is specified in the `formats.ini` and in the API, the setting in the API takes precedence.

## Specify the Process Type In the formats.ini File

Add the `default_detect_inprocess` flag to a `[FilterSDK_Config]` section in the `formats.ini` file to control the default behavior for detection. Set `default_detect_inprocess` to `0` for out-of-process detection, and `1` for in-process detection. For example:

    [FilterSDK Config]
    default_detect_inprocess=0

If this flag is not specified, the file detection behavior is determined by the `default_inprocess` flag for filtering. For example, if you set `default_inprocess` to `1`, filtering and file detection runs in in-process mode by default; if you set `default_inprocess` to `0`, filtering and file detection runs in out-of-process mode by default.

If both the `default_inprocess` and `default_detect_inprocess` flags are set, then `default_inprocess` controls the default filtering behavior and `default_detect_inprocess` controls the default file detection behavior.

## Specify the Process Type In the API

To run format detection in-process, set the flag `FILTERFLAG_DETECTINPROCESS` when you instantiate the Filter object:

    Filter objFilter = new Filter("YOUR_KEYVIEW_LICENSE", Filter.CHARSET_UTF8,
        Filter.FILTERFLAG_DETECTINPROCESS);

To run detection out-of-process, set the flag `FILTERFLAG_DETECTOUTOFPROCESS`.

Copyright 1997-2024 Open Text
Version 24.3 | Last updated June 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.3

Topic Title: Run File Detection In-Process