.net 中的bug:System.OutOfMemoryException At System.String.GetStringForStringBuilder
2010-11-06 16:36
597 查看
当用WebService返回大数据时,会出现如下错误:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(String value)
……
是由于StringBuilder 中内存不足,可看MSDN上的说明
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/10/10/stringbuilder-outofmemoryexception.aspx
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(String value)
……
是由于StringBuilder 中内存不足,可看MSDN上的说明
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/10/10/stringbuilder-outofmemoryexception.aspx
相关文章推荐
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- .net发生类型为 System.OutOfMemoryException 的异常解决办法
- .Net 内存溢出(System.OutOfMemoryException)的常见情况和处理方式总结
- outofmemory issue for stringbuilder
- 引发类型为“System.OutOfMemoryException”的异常-.Net 内存溢出
- [.Net]System.OutOfMemoryException异常
- .Net 内存溢出(System.OutOfMemoryException
- .Net 内存溢出(System.OutOfMemoryException)
- .Net内存溢出 System.OutOfMemoryException
- .Net 内存溢出(System.OutOfMemoryException)的常见情况和处理方式总结
- java.lang.OutOfMemoryError---at java.lang.StringBuilder.append
- .Net 内存溢出(System.OutOfMemoryException)的常见情况和处理方式总结
- .Net 内存溢出(System.OutOfMemoryException)的常见情况和处理方式总结
- 文件下载报错:引发类型为“System.OutOfMemoryException”的异常-.Net 内存溢出
- .Net 内存溢出(System.OutOfMemoryException)的常见情况和处理方式总结
- Xap 包装失败。引发类型为“System.OutOfMemoryException”的异常
- 引发类型为“System.OutOfMemoryException”的异常。
- 解决'System.OutOfMemoryException' 的问题
- [System.OutOfMemoryException] {函数求值已禁用,因为出现内存不足异常。