Nicomsoft OCR: Developer's Guide


Cfg_Destroy


Syntax

C++:int Cfg_Destroy(HCFG CfgObj)
C#:int Cfg_Destroy(int CfgObj)
Visual Basic:Function Cfg_Destroy(ByVal CfgObj As Integer) As Integer
Java:int Cfg_Destroy(HCFG CfgObj)
Delphi:function Cfg_Destroy(CfgObj:HCFG):integer


Description

Releases the Config object. The object can be released only after releasing all associated OCR, SVR, and SCAN objects that were created using the Config object with the Ocr_Create, Scan_Create, and Svr_Create functions.


Parameters

CfgObj [IN] – the Config object to destroy.


Return value

Zero if success, otherwise an error code.


Remarks

All objects will be automatically released when the Engine_Uninitialize function is called.


Example

None.