OpenCV Visual Studio ntdll.dll

[亡魂溺海] 提交于 2020-01-14 12:58:10

问题


I have trying to create a Project using OpenCV 2.4.10 on Visual Studio 2013, but I have had very little luck so far, owing to the following exceptions. Please suggest help. TIA.

'letstryitonemoretime.exe' (Win32): Loaded 'C:\Users\Kndarp\Documents\Visual Studio 2013\Projects\letstryitonemoretime\Debug\letstryitonemoretime.exe'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
First-chance exception at 0x77BC8F05 (ntdll.dll) in letstryitonemoretime.exe: 0xC000007B:  %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0x.
Unhandled exception at 0x77BC8F05 (ntdll.dll) in letstryitonemoretime.exe: 0xC000007B:  %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0x.

回答1:


I got the same error message because my program was trying to load a 32-bit DLL instead of the 64-bit DLL. You can see which DLLs your program is trying to load using Dependency Walker.

Do the following steps:

  1. Open Dependency Walker
  2. Open your executable (File->Open select your executable)
  3. Make sure all your DLLs use the same CPU architecture. The middle pane lists all the DLL your program is using. The CPU column says if the DLL is 32-bit or 64-bit. They should all be the same.

In my case one of the DLLS was 32-bit instead of 64-bit because I had not added the 64-bit DLL to my environment path. I just copied the 64-bit DLL into the same folder as my program binary and the error went away.



来源:https://stackoverflow.com/questions/28340519/opencv-visual-studio-ntdll-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!