- Out of memory condition:
When the system fails to allocate or re-allocate memory a full GC is run to free up as much as possible and then allocation is re-attempted once more before giving up - After some significant allocation:
If one megabyte of memory is allocated since the last garbage collection then GC is fired. - Failure of allocating some native resources: Internally .NET uses various native resources. Some native resource allocation can fail due to memory issues and GC is run before re-attempting
- Profiler:
Profiler APIs build into the framework can force a GC - Forced GC:
System.GC class is provided in the BCL to force a collection - Application moves to background
When the given application is moved to background collection is run
Microsoft Dot Net Master
![Microsoft Dot Net Master](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz5dBFLuAZ_7OVweAtjrWIvqFgpRNuPv6WUZWhw56FpdBnoW4LBxSlUeZEEtJaaG7ESg1Hdq72UEO-joX76S104zg6j8aU6CpowW9npYmA5gFVnKOjiaZDteeSVPNg4kIUO-pbwrB5RtY/s1600/dot.jpg)
Microsoft Dot Net Master
Tuesday, June 12, 2012
When does the .NET Compact Framework Garbage Collector run
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment