Our software runs CorrectSkew first and then OCR operation but i get this error "sometimes" at CorrectSkew operation:

"FREngine Processor: Unable to perform RPC call.The remote procedure call failed."

Here is the code that throws error:

int skewCorrectionMode = (int)FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByHorizontalText + (int)FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByVerticalText;

int pagesCount = frDoc.Pages.Count;

for (int i = 0; i < pagesCount; i++) { frDoc.Pages[i].ImageDocument.CorrectSkew(skewCorrectionMode); }

Would you please tell us the solution or reason of error will be fine for us. Note: We can not get the error on debug mode.

asked 10 Sep '15, 10:39

hakanaktan's gravatar image


As I can see your code is correct.

So, please, try to follow instructions from our KB article: http://knowledgebase.ocrsdk.com/article/696.

In case it was not helpful, please, send the detailed description of the issue to our Technical support team. You can find contacts here. Our specialists will be happy to help you.

(11 Sep '15, 12:46) Julia Anikus... ♦♦

Our problem is not about license server. Operation works for a few times before we get the error. So it is not about license. We do not have support agrrement so we can not ask to them. We got the error from windows event viewer .We can not catch it by try-catch in csharp code. We do not have much detail like stack trace or etc. We got only this message from Windows Event Viewer : "FREngine Processor: Unable to perform RPC call.The remote procedure call failed."

Thanx in advance..

(11 Sep '15, 14:00) hakanaktan

Such error can occurs if the parallel processing was not entirely correct implemented.

Engine object is singleton, so it must be initialized, used and deinitialized within one and the same STA thread strictly. Otherwise program behavior can be unpredictable. For more information about using FRE in Multi-Threaded Applications please refer to the Developer’s Help → Guided Tour → Advanced Techniques → Programming Aspects → Using in Server Applications.

So, could you please check that you use Engine right?

(15 Sep '15, 12:52) Julia Anikus... ♦♦
Be the first one to answer this question!
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: 10 Sep '15, 10:39

Seen: 4,463 times

Last updated: 15 Sep '15, 12:52

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