Puma .NET exception 'System.Runtime.InteropServices.COME

本文关键字:System Runtime InteropServices COME NET exception Puma | 更新日期: 2023-09-27 18:18:21

尝试识别文件夹中的一组图像(使用Puma .NET OCR库),第一个图像被成功识别,但之后我得到一个错误:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' 
occurred in Puma.Net.dll
Additional information: <0x00000000>: ?????? ???.

我有一个特殊的识别类,错误发生在这一行:

Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath);

我找到了这个链接和这个链接,但它们似乎对我的情况没有帮助。

谢谢

Puma .NET exception 'System.Runtime.InteropServices.COME

我通过使用'using'语句找到了答案

 using(Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath))
        {
        }
相关文章: