ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 OCR Access violation ievison.dll
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - Sep 20 2017 :  20:04:55  Show Profile  Reply
Hi all,

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.

Any help is appreciated.

Thanks
Ron

xequte

38182 Posts

Posted - Sep 20 2017 :  22:02:03  Show Profile  Reply
Hi Ron

What version of ImageEn and IEVision are you using? 32 or 64bit?

Can you post some test images and the code needed to reproduce the issue?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Sep 21 2017 :  06:57:11  Show Profile  Reply
Hi Nigel,

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.

Can you explain why this corrected the problem.
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Sep 22 2017 :  07:20:41  Show Profile  Reply
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?
Go to Top of Page

xequte

38182 Posts

Posted - Sep 27 2017 :  16:22:46  Show Profile  Reply
Yes, it could well be. Only one instance of the TIEVisionOCR object can exist in the application:

https://www.imageen.com/help/TIEVisionOCR.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Sep 27 2017 :  16:30:34  Show Profile  Reply
can IEVision be used in a thread?
Go to Top of Page

xequte

38182 Posts

Posted - Oct 03 2017 :  09:44:15  Show Profile  Reply
Hi

Most IEVision functions are thread-safe, but not OCR.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Oct 03 2017 :  09:46:32  Show Profile  Reply
ok thx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: