04 May 2008

The lone System.OutOfMemoryException in your memory dump

I was recently asked ... Every time you run !dumpallexceptions ( !dae ) you will find that there is always a System.OutOfMemory exception object that will be listed

Number of exceptions of this type:        1
Exception MethodTable: 0482151c
Exception object: 182d005c
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 8007000e
The current thread is unmanaged

An OutOfMemory is a critical situation from which the process many not be able to recover. It could very well be that .NET may not be able to create an exception object at that point. So the .Net framework creates an OutOfMemory exception object in the start and stores it for latter use.

That is the reason why !dae will always return a System.OutOfMemory object; it just scans the heap for all exception objects and lists it.

Bookmark and Share
Filed under: , , ,
 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Page view tracker