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