本文介绍了OutOfMemoryException-这是一个错误警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的转储文件包含OutOfMemoryException,但是所有对象字段似乎都为空.只是虚假警报还是有某种方式可以知道该异常?
My dump file contains OutOfMemoryException but all the object fields seem to be null. Is it just a false alarm or is there someway to know about this exception?
0:052> !do 000000027fff10e8
The version of SOS does not match the version of CLR you are debugging. Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.0.30319.18449
SOS Version: 4.0.30319.34011
Name: System.OutOfMemoryException
MethodTable: 000007fcb5476920
EEClass: 000007fcb4f3cd88
Size: 160(0xa0) bytes
File: C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
Fields:
MT Field Offset Type VT Attr Value Name
000007fcb5476508 4000002 8 System.String 0 instance 0000000000000000 _className
000007fcb547e880 4000003 10 ...ection.MethodBase 0 instance 0000000000000000 _exceptionMethod
000007fcb5476508 4000004 18 System.String 0 instance 0000000000000000 _exceptionMethodString
000007fcb5476508 4000005 20 System.String 0 instance 0000000000000000 _message
000007fcb547e238 4000006 28 ...tions.IDictionary 0 instance 0000000000000000 _data
000007fcb5476738 4000007 30 System.Exception 0 instance 0000000000000000 _innerException
000007fcb5476508 4000008 38 System.String 0 instance 0000000000000000 _helpURL
000007fcb5476ae8 4000009 40 System.Object 0 instance 0000000000000000 _stackTrace
000007fcb5476ae8 400000a 48 System.Object 0 instance 0000000000000000 _watsonBuckets
000007fcb5476508 400000b 50 System.String 0 instance 0000000000000000 _stackTraceString
000007fcb5476508 400000c 58 System.String 0 instance 0000000000000000 _remoteStackTraceString
000007fcb54792b8 400000d 88 System.Int32 1 instance 0 _remoteStackIndex
000007fcb5476ae8 400000e 60 System.Object 0 instance 0000000000000000 _dynamicMethods
000007fcb54792b8 400000f 8c System.Int32 1 instance -2147024882 _HResult
000007fcb5476508 4000010 68 System.String 0 instance 0000000000000000 _source
000007fcb547a338 4000011 78 System.IntPtr 1 instance 0 _xptrs
000007fcb54792b8 4000012 90 System.Int32 1 instance -532462766 _xcode
000007fcb542cdd8 4000013 80 System.UIntPtr 1 instance 0 _ipForWatsonBuckets
000007fcb5499eb8 4000014 70 ...ializationManager 0 instance 0000000000000000 _safeSerializationManager
000007fcb5476ae8 4000001 0 System.Object 0 shared static s_EDILock
>> Domain:Value 0000000002b83fd0:NotInit <<
推荐答案
框架启动时,框架会预先分配一个OutOfMemoryException对象.该对象的存在并不表示存在问题.我认为这就是您所看到的.
One OutOfMemoryException object is pre-allocated by the framework when it starts up. The existence of this object does not indicate a problem. I think that this is what you are seeing.
这篇关于OutOfMemoryException-这是一个错误警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!