Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Dispose() Me

Dispose() Me

Scheduled Pinned Locked Moved C#
csharphelpquestionlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Robert M Greene
    wrote on last edited by
    #1

    Is there a simple way to find all the objects in a solution that should call Dispose() or the using() {} statement? I have inherited a large project that has resource and handle leaks everywhere, is there some automatied tool that can help track down the .NET classes that use unmanaged resources? ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum

    L L 2 Replies Last reply
    0
    • R Robert M Greene

      Is there a simple way to find all the objects in a solution that should call Dispose() or the using() {} statement? I have inherited a large project that has resource and handle leaks everywhere, is there some automatied tool that can help track down the .NET classes that use unmanaged resources? ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum

      L Offline
      L Offline
      lmoelleb
      wrote on last edited by
      #2

      You might want to have a look at FxCop[^]

      1 Reply Last reply
      0
      • R Robert M Greene

        Is there a simple way to find all the objects in a solution that should call Dispose() or the using() {} statement? I have inherited a large project that has resource and handle leaks everywhere, is there some automatied tool that can help track down the .NET classes that use unmanaged resources? ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life. Fiat justitia, et ruat cælum

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Try the MS CLR Profiler, or the ANTS Profiler trial :)**

        How xacc.ide transforms text to colored words on the screen
        Intel PentuimM (aka Centrino) undervolting

        **

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups