ExecutionEngineException occurs during Garbage Collection

Article ID: 2679415 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

An x64 .Net 4 application crashes randomly.

CAUSE

This bug can be encountered when the Garbage Collector is freeing and compacting memory. The error can happen when the Concurrent Garbage Collection is enabled and a certain combination of foreground Garbage Collection and background Garbage Collection occurs. When this situation happens you will see the same call stack over and over. On the heap you will see one free object and before it ends you will see another free object corrupting the heap.

RESOLUTION

Disable the concurrent GC as explained in the following document:

How to: Disable Concurrent Garbage Collection
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2679415 - Last Review: March 2, 2012 - Revision: 1.0
APPLIES TO
  • Microsoft .NET Framework 4
Keywords: 
KB2679415

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com