我在用vs2005 编译 2008的tesseract-3.01时,编译无问题,release也没有问题,但是debug的时候总是出现0xc0150002 初始化错误的问题,但是改成2005版本的代码在别人的机器上用VS2005就没有问题,谁知道问题出在了哪里?装了好多补丁,问题还是没有解决,拷贝vc下面的库也试了,还是没有解决,求助
debug时,错误如下
'tesseract.exe': Loaded 'D:\vs2005work\tesseract-3.01\vs2008\bin.dbg\tesseract.exe', Symbols loaded.
'tesseract.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'tesseract.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'tesseract.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'tesseract.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'tesseract.exe': Loaded 'D:\vs2005work\tesseract-3.01\vs2008\bin.dbg\liblept168d.dll', No symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe d:\vs2005work\tesseract-3.01\vs2008\bin.dbg\liblept168d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3628] tesseract.exe: Native' has exited with code -1072365566 (0xc0150002).

解决方案 »

  1.   

    是不是系统环境变量设置有问题,
    你的系统安装路径不是c:\windows?
    'tesseract.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
    ...
    这些dll都没读到
      

  2.   

    是不是把系统DLL的加载地址给占用了
      

  3.   


    这些dll都在C:\WINDOWS\system32下面,没问题
      

  4.   

    LDR: LdrpWalkImportDescriptor() failed to probe d:\vs2005work\tesseract-3.01\vs2008\bin.dbg\liblept168d.dll for its manifest, ntstatus 0xc0150002
    ---- 还是这个dll以及它的manifest文件有问题。到可以的机器上看是否生成了manifest
      

  5.   

    我大一学生,这两天也在做tesseract的使用,咱们交流下吧。我是直接通过cmd调用的,你的编译是什么思路?我的程序现在也有问题,就是调用一次可以,再此调用就崩溃了,也不知道什么问题。
      

  6.   

    问题解决了吗?我也遇到这个问题,求解答
    'AutoMark.exe': Loaded 'D:\Visul2010\期刊标引\output\binDebug\AutoMark.exe', Symbols loaded.
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\mfc100ud.dll', Symbols loaded.
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\msimg32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
    'AutoMark.exe': Loaded 'D:\Visul2010\期刊标引\output\binDebug\cximaged.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
    'AutoMark.exe': Loaded 'D:\Visul2010\期刊标引\output\binDebug\Include.dll', Symbols loaded.
    'AutoMark.exe': Loaded 'D:\Visul2010\期刊标引\output\binDebug\AnalysePst2ud.dll', Cannot find or open the PDB file
    The program '[3108] AutoMark.exe: Native' has exited with code -1072365566 (0xc0150002).