We have a simple prototype that only uses the FRDocument model currently. We are only adding a single image file. We work in VS 2010 and 2013 and get the same issue from either build. We are using 10.5 and 11 and get the same error.

Error occurs on a simple line of code: document.AddImageFile(InputFile, null, null)

The full error is: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at FREngine.IFRDocument.AddImageFile(String ImageFileName, PrepareImageMode PrepareMode, IntsCollection PageIndices)

The "document" object is instantiated the same way as most of the sample projects.

The error never occurs on the first document run through the engine. It occurs on the 2nd or later document run through the engine. It is not consistent but I have not been able to get more than 4 documents through before the error occurs.

The only thing I have found that seems to work is to set this class to "x86" rather than "Any CPU". That worked for 10.5 but we really would like to use 11's 64-bit support.

Anyone seen anything like this?

asked 13 Nov '13, 23:05

Darren's gravatar image


We have added an article about this issue to our Knowledge Base: http://knowledgebase.abbyy.com/article/1565. Please try to follow recommendations provided there.


answered 15 Nov '13, 17:34

Julia%20Anikushina's gravatar image

Julia Anikus... ♦♦

Hi .. the above link doesn't work any more .. can you fix / redirect to a location that does please?


answered 10 Dec '14, 18:00

Matt's gravatar image


Please try to use the following link:



answered 10 Dec '14, 18:22

Lilya%20Chesnova's gravatar image

Lilya Chesnova ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 Nov '13, 23:05

Seen: 1,680 times

Last updated: 10 Dec '14, 18:22

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal