Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
925
Do I need to dispose of Tools I create?
posted

I have a class that creates a lot of tools and adds them to the ToolBarManager. I've been keeping a reference to some of the tools so I can easily access them later, but this is causing FxCop to tell me that I should be implementing IDisposable myself and disposing of these tools. Does the toolbarManager handle disposing the tools?

  • 44743
    posted

    If the tools are still in the Tools collection of the UltraToolbarsManager when it is disposed, they will be properly disposed as well.