Dot-Net-4.0

為什麼 .net 4.0 將所有這些東西都寫入 DebugView?

  • September 29, 2011

當我執行我的 .net 4.0 winforms 應用程序時,我在 debugview 中看到大量輸出(以下是摘錄)。我經常使用 debugview 來調試消息,所以所有這些額外的東西都會變得非常嘈雜。

[8092] *** HR propagated: -2147024774
[8092] ***   Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144
[8092] 
[8092] 
[8092] *** HR originated: -2147024774
[8092] ***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302
[8092] 
[8092] 
[8092] *** HR propagated: -2147024774
[8092] ***   Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144
[8092] 
[8092] 
[8092] *** HR originated: -2147024774
[8092] ***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

有誰知道為什麼會發生這種情況,以及我是否/如何防止它?

在發布這個問題之前,我一直在網上搜尋,但當然我一問就找到了一些東西。

這是這裡已經報告的錯誤: http ://connect.microsoft.com/VisualStudio/feedback/details/535084/vs2010-debug-output-should-be-cleaned-up

顯然,這個詳細的調試輸出有很多方面,因此需要一些時間(下一個 .net 版本)才能發布所有修復。

VS 2010 SP1現已推出。

解決方法是添加一些排除過濾器,但不排除空行:

起源;iso_whid;傳播; ;

引用自:https://stackoverflow.com/questions/5260386