系統debug時出現錯誤,System.AccessViolationException: 嘗試讀取或寫入受保護的內存。這一般指示其餘內存已損壞。this
Attempted to read or write protected memory. This is often an indication that other memory is corruptdebug
從網上查閱,大多都是說由於調用C++等dll等等,但系統中確實沒有關於其餘dll的調用,非常鬱悶。最後查得設置配置參數便可。blog
解決辦法:內存
Tools menu ->Options -> Debugging -> General -> Uncheck this option "Suppress JIT optimization on module load"it