私は最も単純な例について話しています - 以下を参照してください - 明らかに何かが壊れています。完全なアウトとエラーテキストは次のとおりです。
新しい発見!!! Visual Studio 2008 を起動しました -- 何年も使用してきましたが、C++ の場合は、この test5.cs から新しいソリューションを構築しました。. . . デバッグを開始すると、まったく同じエラー!!! さらに、CLR コンソール アプリケーションを含むいくつかのタイプの小さなテスト プログラムを C++ で作成しました。これらはすべて「デバッグの開始」を介して正しく動作します。
ヘルプ!
<small><small>'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\projects\test5\test5\test5\bin\Debug\test5.vshost.exe'<br>
The thread 'vshost.NotifyLoad' (0x3518) has exited with code 0
(0x0).<br>
The thread 'vshost.LoadReference' (0x36a8) has exited with
code 0 (0x0).<br>
'test5.vshost.exe' (Managed (v2.0.50727)): Loaded
'C:\projects\test5\test5\test5\bin\Debug\test5.exe', Symbols
loaded.<br>
Ignoring managed exception from unknown thread.The program
'[6748] test5.vshost.exe: Managed (v2.0.50727)' has exited
with code -2147023895 (0x800703e9).</small></small>
テストプログラムを実行すると、エラーは発生せず、正しく実行されます....
また、重要なこととして、プログラム ファイルに移動し、[デバッグ] の下で [アンマネージ コードのデバッグを有効にする] をオンにすると、デバッグの開始も正しく機能します...エラーは発生しません..この場合の出力トレースは以下のコード例の後に追加されています...
この問題は、リモート デバッグ セッション中に一致しないと報告される一致する .PDB ファイルについて投稿する予定の次の質問の背後にもあると思います.....
これがサンプルプログラムです-しかし、それは実際には問題ではありません-私が試したすべてのC#の例は、このように動作しています.....
前もって感謝します, ケビン・ウェイト
using System;
namespace test5
{
class Program
{
static void Main(string[] args)
{
int x = 0;
while (true)
{
System.Console.WriteLine("Hello, World! {0} ", x );
++x;
}
}
}
}
'test5.exe': Loaded 'C:\projects\test5\test5\test5\bin\Debug\test5.exe', No native symbols in symbol file.
'test5.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\mscoree.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll', Cannot find or open the PDB file
'test5.exe': Unloaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll'
'test5.exe': Unloaded 'C:\Windows\System32\ws2_32.dll'
'test5.exe': Unloaded 'C:\Windows\System32\nsi.dll'
The thread 'Win32 Thread' (0x1998) has exited with code 0 (0x0).
'test5.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\msvcr80.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'test5.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Culture.dll', Cannot find or open the PDB file
'test5.exe': Unloaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Culture.dll'
'test5.exe': Loaded 'C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\c068708e16abf0be77a21b9f29817d83\mscorlib.ni.dll', Cannot find or open the PDB file
'test5.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'
'test5.exe' (Managed (v2.0.50727)): Loaded 'C:\projects\test5\test5\test5\bin\Debug\test5.exe', Symbols loaded.
'test5.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll', Cannot find or open the PDB file