c ++ \编译成功,无法调试 - STATUS_DLL_NOT_FOUND

时间:2011-05-24 12:53:15

标签: c++ debugging dll visual-studio-2005 symbols

为什么我不能调试我的应用程序(尽管编译很好)? 1.它真的需要Windows dll吗?我怎么能附上它们? 2.为什么它不能识别我的Dlls?它位于同一个文件夹中..

(VS2005,主程序是带c#代码的c ++)。

错误是 - 调试器::在进程中抛出了未处理的不可持续的STATUS_DLL_NOT_FOUND异常

'Transcriber.exe': Loaded 'D:\Folder\Transcriber.exe', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'D:\Folder\RegAccess71.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFC_1fc8b3b9a1e18e3b_8.0.50727.4027_x-ww_b779ebd5\mfc80.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'D:\Folder\MetaData.dll', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\HookDll.dll', Binary was not built with debug information.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFCLOC_1fc8b3b9a1e18e3b_8.0.50727.4027_x-ww_0cc904d3\mfc80ENU.dll', Binary was not built with debug information.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcm80d.dll', Symbols loaded.
'Transcriber.exe': Loaded 'D:\Folder\ITSConfigWrapper.dll', Symbols loaded.
'Transcriber.exe': Loaded 'D:\Folder\InfoTransformerWrapper.dll', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\dbghelp.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80ud.dll', Symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
'Transcriber.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.ATL_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_473666fd\ATL80.dll', No symbols loaded.
'Transcriber.exe': Loaded 'D:\Folder\LoggerClientD.dll', No symbols loaded.
**Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process** load
The program '[4224] Transcriber.exe: Native' has exited with code -1073741515 (0xc0000135).

2 个答案:

答案 0 :(得分:2)

您正在加载MFC和C运行时的发行版和调试版。遗憾的是,那永远不会奏效。您需要使用所有DLL的发布模式或所有DLL的调试模式。

答案 1 :(得分:1)

正在返回此错误,因为缺少运行应用程序所需的DLL文件。检查您的链接器设置,并确保您的应用程序所依赖的所有DLL都应该是它们所在的位置(即与可执行文件位于同一文件夹中,或DLL搜索路径中的其他位置。)