如何在解析作为API响应的大字符串时处理System.OutOfMemoryException异常。
我是在解析一个大字符串时得到这个异常的。Exception of type 'System.OutOfMemoryException' was thrown.System.OutOfMemoryException OutOfMemoryException System.OutOfMemoryException: Exception of type 'System.Ou
我有以下导致OOM的代码(没有app.config更改,gcAllowVeryLargeObjects默认设置为false):{ double; i < 13421772; i++) b.Add(new Data[134217724]);现在,我已经从Visual执行了代码,并得到了以下异常:
Message=Exception of type