Writing Tests to Catch Memory Leaks in .NET (brian.genisio.org)

published 1 year, 2 months ago, submitted by BrianGenisioBrianGenisio(850) 1 year, 2 months ago

Although Microsoft will claim that it is "not possible to have a memory leak in managed code", most seasoned .NET developers will laugh at that statement. It turns out that it is very easy to leak memory -- just keep a referencing object around longer than the referenced object, and you can leak. Here is a way to write tests to catch leaks.

2 comments | category: | Views: 550

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
information Login or create an account to comment on this story