Memory Leaks               Yuriy Seniuk
Memory in .NET          •    Stack          •    Managed Heap          •    Unmanaged HeapMemory Leaks
How to detect leaks?          •    OutOfMemoryEcxeption          •    Slow Execution          •    Increasing of Memory Us...
Leaks in Stack Memory          •     StackOverflowException                Invocation of methods which needs large memory...
Leaks in Unmanaged Heap          •    Invocation of unmanaged code          •    Errors in finalize methods          •    ...
Leaks in Managed Heap          •        Fragmentation of Large Memory Heap          •        Root links                  ...
Used resources                http://msdn.microsoft.com/ru-ru/magazine/cc163491.aspx                http://msdn.microsof...
Q/AThanks you all
Upcoming SlideShare
Loading in …5
×

Mita community #18 Memory Leaks

710 views

Published on

This presentation show brief cases when Memory Leaks in .Net could take place.

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
710
On SlideShare
0
From Embeds
0
Number of Embeds
316
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mita community #18 Memory Leaks

  1. 1. Memory Leaks Yuriy Seniuk
  2. 2. Memory in .NET • Stack • Managed Heap • Unmanaged HeapMemory Leaks
  3. 3. How to detect leaks? • OutOfMemoryEcxeption • Slow Execution • Increasing of Memory UsageMemory Leaks
  4. 4. Leaks in Stack Memory • StackOverflowException  Invocation of methods which needs large memory resources  Cyclic/Deep Invocation • Leaks in Thread’s stackMemory Leaks
  5. 5. Leaks in Unmanaged Heap • Invocation of unmanaged code • Errors in finalize methods • Dynamic creation of an assembly in memory • XmlSerializerMemory Leaks
  6. 6. Leaks in Managed Heap • Fragmentation of Large Memory Heap • Root links  Events  Static Fields • Midlife crisisMemory Leaks
  7. 7. Used resources  http://msdn.microsoft.com/ru-ru/magazine/cc163491.aspx  http://msdn.microsoft.com/library/ee787088.aspx  http://stackoverflow.com/questions/11711867/extremely-large- objects-and-managed-heap-in-c-sharpMemory Leaks
  8. 8. Q/AThanks you all

×