3. How to detect leaks?
• OutOfMemoryEcxeption
• Slow Execution
• Increasing of Memory Usage
Memory Leaks
4. Leaks in Stack Memory
• StackOverflowException
Invocation of methods which needs large memory resources
Cyclic/Deep Invocation
• Leaks in Thread’s stack
Memory Leaks
5. Leaks in Unmanaged Heap
• Invocation of unmanaged code
• Errors in finalize methods
• Dynamic creation of an assembly in memory
• XmlSerializer
Memory Leaks
6. Leaks in Managed Heap
• Fragmentation of Large Memory Heap
• Root links
Events
Static Fields
• Midlife crisis
Memory Leaks