computer






 

Question by  Lilane (39)

How do you avoid C# memory leaks?

 
+5

Answer by  ssanirsa (5)

Memory leak occurs when first memory leak is not deleted. Memory leaks can be avoided by the deleting the using statement.

 
+5

Answer by  gigo (1706)

Check that in your code: Do you hold some references of managed objects, that you do not need anymore? If so you can as well call directly the dispose method.

 
+3

Answer by  AnilaDS (23)

Allow "" to manage memory.It will do a good job of memory management.Dispose method is used to release unmanaged resources that aren't handled by the garbage collector.

 
You have 50 words left!