Citrix Interview Question: How to identify memory leaks ... | Glassdoor

Interview Question

Senior Software Test Engineer Interview Fort Lauderdale, FL

How to identify memory leaks and resolve. Core CLR questions

Answer

Interview Answer

1 Answer

0

If you are concerned that you may have a memory leak in C#, the first thing to do is identify what kind of leak you may have. C# is garbage collected, so memory leaks aren't common. The most common sources are holding onto references to large objects (like images), large object trees (like collections), or not cleaning up unmanaged objects (native Windows objects allocated through P/Invoke, file handles or DB connections). Disposing of IDisposable objects can also free up memory faster, resulting in a smaller memory footprint.

Anonymous on Feb 12, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.