COMException Access violation... Bin64\FineObj.dll (ReceiptCapture SDK)

  • Last Post 21 July 2017
Jack Mackenzie posted this 20 July 2017

Hi, I have been able to successfully get the Receipt Capture SDK to OCR some receipts however sometimes (haven't been able to replicate the exact steps that cause it) I get this error while running the recognizer.Process method:

System.Runtime.InteropServices.COMException: 'Access violation. The instruction at 0x000002FFFDF92620 (D:\devl\JackM\Ocr\Abbyy Install\Bin64\FineObj.dll) referenced memory at 0xFFFFFFFFFFFFFFFF. The memory could not be read.'

Any help would be great thanks.

Attached Files

Oksana Serdyuk posted this 21 July 2017

Hi, as we've already answered you by email, most probably this issue is related with incorrect implementation of parallel processing. Since the Receipt Capture SDK itself is single-threaded, calls to it should be synchronized. The "Different Ways to Load Engine" article describes possible ways to load the Engine object in Receipt Capture SDK (Developer’s Help → Guided Tour → Programming Aspects → Different Ways to Load the Engine Object). You should use InprocLoader or OutprocLoader to manage synchronization internally depending on your usage scenario.