コミュニティ

System.AccessViolationException

Hi,

 

I got the following error:

 

Exception non gérée : System.AccessViolationException: Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.
   à FREngine.FRDocumentClass.AddImageFile(String ImageFileName, PrepareImageMode PrepareMode, IIntsCollection PageIndices)

My code is:

ABBYY.Processor processor = new ABBYY.Processor();

processor.loadEngine();
processor.setupFREngine();

foreach(string filePath in filePaths)
{
FRDocument document = engineLoader.Engine.CreateFRDocument();

try {
document.AddImageFile(filePath, null, null);
FREngine.DocumentProcessingParams dpp = engineLoader.Engine.CreateDocumentProcessingParams();
document.Process( dpp );
document.Export(fileOut, FileExportFormatEnum.FEF_TextUnicodeDefaults, null);
}

processor.unloadEngine();
Console.WriteLine("Finished.");

 

I've read this https://support.abbyy.com/hc/en-us/articles/360001377005 but I don't understand where it fails.

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

0件のコメント

サインインしてコメントを残してください。