none
utility to detect unmanged resources leaks RRS feed

  • Question

  • How i can detect unmanged resources leaks on .NET ? There are some utilities for native platofrm. Boundchecker, codesnitch, as i'm not mistakes.
    Friday, April 11, 2008 8:04 AM

Answers

  • In the .NET framework, unmanaged resources are allocated and released by managed classes.  Seeing a Dispose() method is a dead-giveaway that a class uses unmanaged resources.  Using a standard managed resource tracker (like ClrProfiler) will let you find what managed class instances are leaking.  Solve those and you'll automatically solve unmanaged resource leaks too.
    Sunday, April 13, 2008 3:35 PM
    Moderator

All replies

  • Hello there...

    I think this will help you...

    http://msdn2.microsoft.com/en-us/magazine/cc163491.aspx 

     

    Saturday, April 12, 2008 7:18 PM
  • In the .NET framework, unmanaged resources are allocated and released by managed classes.  Seeing a Dispose() method is a dead-giveaway that a class uses unmanaged resources.  Using a standard managed resource tracker (like ClrProfiler) will let you find what managed class instances are leaking.  Solve those and you'll automatically solve unmanaged resource leaks too.
    Sunday, April 13, 2008 3:35 PM
    Moderator