I have an OCR process to OCR regions of text and Bar Code information from a file. When I process each file manually the process works as expected but when I put the same process in a loop the following exception is raised or no value is return.
Access violation at address 10BCCADO in module ievision.dll. read of address 185d8cc1.
I believe I identified the problem. I was using a form to load an image, load the ocr zones then perform the OCR process. The loop call the forms show method in which the form would execute the above process and then free it self. I change the forms Show method to ShowModal and the error was eliminated.
I think the problem could be that each form is running the OCR engine and since the form is not modal more than one instance of the OCR engine is being called. Could this been the cause of the GP error?