Home : Optical Character Recognition (OCR) : Glyphreader : Suppressing GlyphReader Error Dialogs
Q10395 - HOWTO: Suppressing GlyphReader Error Dialogs

Many customers using the Atalasoft GlyphReader OCR engine do so in an automated fashion. Occasionally GlyphReader may run in to an exception that causes it to throw an error dialog. These can be suppressed by making a change to the GlyphReader.ini in the OcrResources used by your application.

In deployed instances you will be in control of where the GlyphReader resources are deployed, but in a default SDK installation they are located in: C:\Program Files (x86)\Atalasoft\DotImage 10.4\bin\OCRResources\GlyphReader\

There are two instances of the .ini, one under OCRResources\GlyphReader\v4.0\x86 and one under OCRResources\GlyphReader\v4.0\x64 you need to modify the one that matches the CPU target you are running under or modify both.

Change:
[API]
Error Mode=1

To:
[API]
Error Mode=0

That should suppress those dialogs and throw catchable exceptions when the errors occur.

Note: Not all exceptions will have an InnerException so when logging the error ensure the InnerException is not null before accessing the property.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved