久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在安全處理異常時避免首次機會異常消息

Avoiding first chance exception messages when the exception is safely handled(在安全處理異常時避免首次機會異常消息)
本文介紹了在安全處理異常時避免首次機會異常消息的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

以下代碼捕獲 EOS 異常

The following bit of code catches the EOS Exception

using (var reader = new BinaryReader(httpRequestBodyStream)) {

    try {
        while (true) {
            bodyByteList.Add(reader.ReadByte());
        }
    } catch (EndOfStreamException) { }
}

那么為什么我仍然會在我的控制臺中收到第一次機會異常?

So why do I still receive first-chance exceptions in my console?

在 mscorlib.dll 中發生了System.IO.EndOfStreamException"類型的第一次機會異常

A first chance exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll

有沒有辦法隱藏這些首次機會異常消息?

Is there a way to hide these first chance exception messages?

推薦答案

第一次機會"異常的關鍵在于您正在看到它們的預處理程序,以便您可以在調試期間在拋出點停止它們.第二次機會"異常是沒有適當處理程序的異常.有時您想捕獲第一次機會"異常,因為重要的是要查看拋出異常時發生的情況,即使有人正在捕獲它.

The point of "first-chance" exceptions is that you're seeing them pre-handler so that you can stop on them during debugging at the point of throwing. A "second-chance" exception is one that has no appropriate handler. Sometimes you want to catch "first-chance" exceptions because it's important to see what's happening when it's being thrown, even if someone is catching it.

沒什么好擔心的.這是正常行為.

There's nothing to be concerned with. This is normal behavior.

這篇關于在安全處理異常時避免首次機會異常消息的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Best way to keep track of current online users(跟蹤當前在線用戶的最佳方式)
主站蜘蛛池模板: 午夜精品| 99精品视频一区二区三区 | 亚洲 自拍 另类 欧美 丝袜 | 色综合天天天天做夜夜夜夜做 | 在线观看精品 | 福利av在线 | 免费观看一级毛片 | 成人免费网站www网站高清 | 成人精品视频在线观看 | 亚洲精品一区av在线播放 | 国精日本亚洲欧州国产中文久久 | 99国产精品99久久久久久 | 精品一区国产 | 午夜视频在线 | 一级黄色片免费在线观看 | 看片国产 | 日本天天操 | 国产精品1区2区3区 国产在线观看一区 | 中文在线a在线 | 亚洲五码久久 | 久久成人一区 | 精品国产乱码久久久久久影片 | 久久国产亚洲精品 | 欧美日韩精品一区二区三区蜜桃 | 黄网站涩免费蜜桃网站 | 成年免费大片黄在线观看岛国 | 一区二区三区在线免费观看 | 久久精品a | 四虎永久影院 | h小视频| 视频精品一区二区三区 | 午夜精品久久久久99蜜 | 亚洲精品在线免费观看视频 | 成人免费一级视频 | 精品久久久久久亚洲综合网 | 午夜电影福利 | 欧美一区二区三区在线播放 | 亚洲精品一区二区 | 成人久草 | 人人干人人超 | 国产精品一区二区av |