Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Shutdown Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrEngine Interface : Shutdown Method



Shuts down the OCR engine and frees all resources and memory allocated to it.

Syntax

Visual Basic (Declaration) 
Overridable Sub Shutdown() 
Visual Basic (Usage)Copy Code
Dim instance As IOcrEngine
 
instance.Shutdown()
C# 
virtual void Shutdown()
C++/CLI 
virtual void Shutdown(); 

Example

For an example, refer to Startup.

Remarks

The Startup method must be called before invoking any other methods or properties in this IOcrEngine.

To check if the engine is started, use the IsStarted property.

You must call Shutdown to shut down the engine and free the memory and resources used.

You can call the Startup method multiple times, only the first call will start the engine while subsequent calls will only increment an internal counter. You must call Shutdown for each Startup called.

The IOcrEngine interface implements IDisposable. It is highly recommended that you call Dispose (or use the using statement in C# or Using statement in Visual Basic) when creating the IOcrEngine instance. The Dispose method will automatically shuts down the engine if it has been started.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Shutdown requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features