CorrectSkew Error

  • Last Post 15 September 2015
hakanaktan posted this 10 September 2015

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.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.

Order By: Standard | Newest | Votes
Julia Anikushina posted this 11 September 2015

As I can see your code is correct.

So, please, try to follow instructions from our KB article:

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.

hakanaktan posted this 11 September 2015

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..

Julia Anikushina posted this 15 September 2015

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?

  • Liked by
  • hakanaktan