Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Event handle leak in an idle .NET Framework 4 application


Symptoms

Certain Microsoft .NET Framework 4 applications leak event handles even when the application is idle.

↑ Back to the top


Cause

Microsoft has confirmed that this is a bug in the .NET Framework 4. The issue occurs because the thread pool is creating and destroying threads, but it will not actually reclaim the memory and handles associated with a thread until the garbage collector runs. For some applications, this happens very rarely, because they seldom allocate managed objects.

↑ Back to the top


Resolution

This issue has been fixed in the Microsoft .NET Framework 4.5.

↑ Back to the top


Keywords: kbsurveynew, kbtshoot, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 2975459
Revision : 1
Created on : 1/7/2017
Published on : 7/4/2014
Exists online : False
Views : 58