msvcr120.dll上的无效参数错误(在64位Windows中构建Tesseract Lib)

时间:2023-01-23 08:58:47

I have already raised the inquiry to Tesseract Forum, but whether I can have a clue for the error, I raise the issue at this forum again. As this is my favorite forum in solving the problems.

我已经向Tesseract论坛提出了询问,但是我是否可以找到错误的线索,我再次在这个论坛上提出这个问题。因为这是我最喜欢的解决问题的论坛。

I have a problem somehow related to the tesseract lib.

我有一个问题与tesseract lib有关。

The problem is at libtiff one of the components used in leptonica library.

问题在于libtiff leptonica库中使用的组件之一。

I followed exactly what is described here

我完全按照这里描述的内容

in building libtiff for my 64bit windows.

为我的64位窗口构建libtiff。

C:\LIBTIFF\LIBTIFF> nmake /f makefile.vc
C:\LIBTIFF\LIBTIFF> cd ..\tools
C:\LIBTIFF\TOOLS> nmake /f makefile.vc

Build is ok. Using tiff lib and I built leptonica lib and tessearact lib for 64bit windows. Once I run my application using tesseract lib, I got error at tiff lib and the error is

构建是好的。使用tiff lib和我为64位窗口构建了leptonica lib和tessearact lib。一旦我使用tesseract lib运行我的应用程序,我在tiff lib时出错,错误是

"Unhandled exception at 0x00007FFA966FDD27 (msvcr120.dll) in TessarActOCR_test.exe: An invalid parameter was passed to a function that considers invalid parameters fatal."

“TessarActOCR_test.exe中0x00007FFA966FDD27(msvcr120.dll)处的未处理异常:将无效参数传递给认为无效参数致命的函数。”

The error is happening at lseek in the following function. The function is located in tiffio.c

错误发生在lseek的以下函数中。该功能位于tiffio.c中

static TIFF *
fopenTiff(FILE        *fp,tif_win32.c
          const char  *modestring)
{
l_int32  fd;

    PROCNAME("fopenTiff");

    if (!fp)
        return (TIFF *)ERROR_PTR("stream not opened", procName, NULL);
    if (!modestring)
        return (TIFF *)ERROR_PTR("modestring not defined", procName, NULL);

    if ((fd = fileno(fp)) < 0)
        return (TIFF *)ERROR_PTR("invalid file descriptor", procName, NULL);
    lseek(fd, 0, SEEK_SET);

    return TIFFFdOpen(fd, "TIFFstream", modestring);
}

What could be wrong with this error?

这个错误可能有什么问题?

1 个解决方案

#1


Now I solved all problems and tesseract lib is working at my 64bit pc and project. The solution for me is step by step following the discussions in this link during preparing the dependencies. Then leptonica lib is built and then link to tesseract to build tesseract lib. Now all are working well.

现在我解决了所有问题,并且我正在使用我的64位PC和项目。对于我来说,解决方案是在准备依赖项期间按照此链接中的讨论逐步进行的。然后构建leptonica lib,然后链接到tesseract以构建tesseract lib。现在一切都运转良好。

#1


Now I solved all problems and tesseract lib is working at my 64bit pc and project. The solution for me is step by step following the discussions in this link during preparing the dependencies. Then leptonica lib is built and then link to tesseract to build tesseract lib. Now all are working well.

现在我解决了所有问题,并且我正在使用我的64位PC和项目。对于我来说,解决方案是在准备依赖项期间按照此链接中的讨论逐步进行的。然后构建leptonica lib,然后链接到tesseract以构建tesseract lib。现在一切都运转良好。