[FREngine 12] How to properly deinitialise IEngine?

  • Last Post 30 September 2019
Andy Shiue posted this 27 September 2019


I am new to FRE and am wondering how to properly deinitialise the IEngine in the following scenario.


In Windows, we extract the dll and call IEngine.load while for other OS we directly call IEngine.InitializeEngine.


I can see there's Unload and DeinitializeEngine. Just want to know whether we just need to call DeinitializeEngine in both case or we do Unload for Windows and DeinitializeEngine for the other?

Thank you very much in advance.



Koen de Leijer posted this 30 September 2019

Hi Andy

We also work with Java on both Linux and Windows,
I have never used the Unload method, we rely on DeinitializeEngine

Best regards

Koen de Leijer

    private IEngine engine = null;

    public void Run(String inputfilename, String dllFolder, String developerSn, String languages) throws Exception {
        // Load ABBYY FineReader Engine
        engine = Engine.GetEngineObject(dllFolder, developerSn);

        try {
            // Setup ABBYY FineReader Engine
            print("Loading ABBYY predefined profile");
            String profile = "DocumentConversion_Accuracy";

            // Process PDF
        } catch (Exception ex) {
        } finally {
            // Unload ABBYY FineReader Engine
            print("Deinitializing ABBYY Engine...");
            engine = null;