2

Windows 7 x64 で WinDbg を使用して .NET 4 32 ビット (プロジェクト オプションで明示的に設定) アプリケーションをデバッグしようとしています。手順は次のとおりです。

  • アプリケーションを起動します (foo.exe にします)。
  • windbg.exe で x86 バージョンを起動します
  • foo.exeにアタッチ
  • .loadby sos clr
  • !ダンプヒープ -stat

その後、私はこれを取得します:

Failed to load data access DLL, 0x80004005
Verify that 1) you have a recent build of the debugger (6.2.14 or newer)
            2) the file mscordacwks.dll that matches your version of clr.dll is 
                in the version directory
            3) or, if you are debugging a dump file, verify that the file 
                mscordacwks_<arch>_<arch>_<version>.dll is on your symbol path.
            4) you are debugging on the same architecture as the dump file.
                For example, an IA64 dump file must be debugged on an IA64
                machine.

なにが問題ですか?私はたくさん検索しました..この質問はメモリダンプに関するもののようです:データアクセスDLLのロードに失敗しました、0x80004005 しかし、実行中のアプリケーションをデバッグしようとしています。

4

2 に答える 2

2

最後に、WinDbg の代わりに Visual Studio Immediate Window を使用して SOS 関数 (dumpheap など) を呼び出しました: http://msdn.microsoft.com/en-us/library/bb190764.aspx

于 2012-05-15T10:18:44.430 に答える